summaryrefslogtreecommitdiffstats
path: root/meta/packages/initscripts/initscripts-1.0/mountall.sh
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/initscripts/initscripts-1.0/mountall.sh')
-rwxr-xr-xmeta/packages/initscripts/initscripts-1.0/mountall.sh45
1 files changed, 45 insertions, 0 deletions
diff --git a/meta/packages/initscripts/initscripts-1.0/mountall.sh b/meta/packages/initscripts/initscripts-1.0/mountall.sh
new file mode 100755
index 0000000000..b5cb85a1e9
--- /dev/null
+++ b/meta/packages/initscripts/initscripts-1.0/mountall.sh
@@ -0,0 +1,45 @@
1#
2# mountall.sh Mount all filesystems.
3#
4# Version: @(#)mountall.sh 2.83-2 01-Nov-2001 miquels@cistron.nl
5#
6. /etc/default/rcS
7
8#
9# Mount local filesystems in /etc/fstab. For some reason, people
10# might want to mount "proc" several times, and mount -v complains
11# about this. So we mount "proc" filesystems without -v.
12#
13test "$VERBOSE" != no && echo "Mounting local filesystems..."
14mount -at nonfs,nosmbfs,noncpfs 2>/dev/null
15
16#
17# We might have mounted something over /dev, see if /dev/initctl is there.
18#
19if test ! -p /dev/initctl
20then
21 rm -f /dev/initctl
22 mknod -m 600 /dev/initctl p
23fi
24kill -USR1 1
25
26#
27# Execute swapon command again, in case we want to swap to
28# a file on a now mounted filesystem.
29#
30doswap=yes
31case "`uname -r`" in
32 2.[0123].*)
33 if grep -qs resync /proc/mdstat
34 then
35 doswap=no
36 fi
37 ;;
38esac
39if test $doswap = yes
40then
41 swapon -a 2> /dev/null
42fi
43
44: exit 0
45