summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/initscripts/initscripts-1.0/mountall.sh
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/initscripts/initscripts-1.0/mountall.sh')
-rwxr-xr-xmeta/recipes-core/initscripts/initscripts-1.0/mountall.sh38
1 files changed, 38 insertions, 0 deletions
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/mountall.sh b/meta/recipes-core/initscripts/initscripts-1.0/mountall.sh
new file mode 100755
index 0000000000..9d4f97b683
--- /dev/null
+++ b/meta/recipes-core/initscripts/initscripts-1.0/mountall.sh
@@ -0,0 +1,38 @@
1### BEGIN INIT INFO
2# Provides: mountall
3# Required-Start: mountvirtfs
4# Required-Stop:
5# Default-Start: S
6# Default-Stop:
7# Short-Description: Mount all filesystems.
8# Description:
9### END INIT INFO
10
11. /etc/default/rcS
12
13#
14# Mount local filesystems in /etc/fstab. For some reason, people
15# might want to mount "proc" several times, and mount -v complains
16# about this. So we mount "proc" filesystems without -v.
17#
18test "$VERBOSE" != no && echo "Mounting local filesystems..."
19mount -at nonfs,nosmbfs,noncpfs 2>/dev/null
20
21#
22# We might have mounted something over /dev, see if /dev/initctl is there.
23#
24if test ! -p /dev/initctl
25then
26 rm -f /dev/initctl
27 mknod -m 600 /dev/initctl p
28fi
29kill -USR1 1
30
31#
32# Execute swapon command again, in case we want to swap to
33# a file on a now mounted filesystem.
34#
35swapon -a 2> /dev/null
36
37: exit 0
38