File: mountall.sh

package info (click to toggle)
diskless 0.3.17
  • links: PTS
  • area: main
  • in suites: woody
  • size: 728 kB
  • ctags: 119
  • sloc: perl: 2,628; xml: 740; sh: 403; makefile: 104
file content (34 lines) | stat: -rw-r--r-- 687 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#
# mountall.sh	Mount all filesystems.
#
# Version:	@(#)mountall.sh  2.76  10-Dec-1998  miquels@cistron.nl
#

# modified for diskless-image, secure mode, 1999-09-20

. /etc/default/rcS

#
# Mount local file systems in /etc/fstab.
#
[ "$VERBOSE" != no ] && echo "Mounting local file systems..."
mount -avt nonfs,noproc
# DON'T MOUNT RW YET!!! IT WILL MAKE /DEV UNACCESSIBLE!!!
umount /rw

#
# We might have mounted something over /dev, see if /dev/initctl is there.
#
if [ ! -p /dev/initctl ]
then
	rm -f /dev/initctl
	mknod -m 600 /dev/initctl p
fi
kill -USR1 1

#
# Execute swapon command again, in case we want to swap to
# a file on a now mounted filesystem.
#
swapon -a 2>/dev/null