]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/initscripts/initscripts-1.0/mountall.sh
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / initscripts / initscripts-1.0 / mountall.sh
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 #
13 test "$VERBOSE" != no && echo "Mounting local filesystems..."
14 mount -at nonfs,nosmbfs,noncpfs 2>/dev/null
15
16 #
17 # We might have mounted something over /dev, see if /dev/initctl is there.
18 #
19 if test ! -p /dev/initctl
20 then
21         rm -f /dev/initctl
22         mknod -m 600 /dev/initctl p
23 fi
24 kill -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 #
30 doswap=yes
31 case "`uname -r`" in
32         2.[0123].*)
33                 if grep -qs resync /proc/mdstat
34                 then
35                         doswap=no
36                 fi
37                 ;;
38 esac
39 if test $doswap = yes
40 then
41         swapon -a 2> /dev/null
42 fi
43
44 : exit 0
45