merge of '07a342693675fe2b1daacf0eb62302579d9fade3'
[org.openembedded.dev.git] / packages / initscripts / initscripts-1.0 / mtx-2 / mountall.sh
blob4d12c06254fdddee42456be3a9a75330e9a37d16
2 # mountall.sh Mount all filesystems.
4 # Version: @(#)mountall.sh 2.83-2 01-Nov-2001 miquels@cistron.nl
6 . /etc/default/rcS
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.
13 test "$VERBOSE" != no && echo "Mounting local filesystems..."
14 mount -a 2>/dev/null
15 #t nonfs,nosmbfs,noncpfs 2>/dev/null
18 # We might have mounted something over /dev, see if /dev/initctl is there.
20 if test ! -p /dev/initctl
21 then
22 rm -f /dev/initctl
23 mknod -m 600 /dev/initctl p
25 kill -USR1 1
28 # Execute swapon command again, in case we want to swap to
29 # a file on a now mounted filesystem.
31 doswap=yes
32 case "`uname -r`" in
33 2.[0123].*)
34 if grep -qs resync /proc/mdstat
35 then
36 doswap=no
39 esac
40 if test $doswap = yes
41 then
42 swapon -a 2> /dev/null
45 : exit 0