blob: c719be5d9ac021aa15d69f78cb1d33af8f905f18 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001#!/bin/sh
2### BEGIN INIT INFO
3# Provides: mountall
4# Required-Start: mountvirtfs
5# Required-Stop:
6# Default-Start: S
7# Default-Stop:
8# Short-Description: Mount all filesystems.
9# Description:
10### END INIT INFO
11
12. /etc/default/rcS
13
14#
15# Mount local filesystems in /etc/fstab. For some reason, people
16# might want to mount "proc" several times, and mount -v complains
17# about this. So we mount "proc" filesystems without -v.
18#
19test "$VERBOSE" != no && echo "Mounting local filesystems..."
20mount -at nonfs,nosmbfs,noncpfs 2>/dev/null
21
Andrew Geissler706d5aa2021-02-12 15:55:30 -060022#
23# We might have mounted something over /dev, see if /dev/initctl is there.
24#
25if test ! -p /dev/initctl
26then
27 rm -f /dev/initctl
28 mknod -m 600 /dev/initctl p
Patrick Williamsc124f4f2015-09-15 14:41:29 -050029fi
Andrew Geissler706d5aa2021-02-12 15:55:30 -060030kill -USR1 1
Patrick Williamsc124f4f2015-09-15 14:41:29 -050031
32#
33# Execute swapon command again, in case we want to swap to
34# a file on a now mounted filesystem.
35#
Patrick Williamsc0f7c042017-02-23 20:41:17 -060036[ -x /sbin/swapon ] && swapon -a
Patrick Williamsc124f4f2015-09-15 14:41:29 -050037
38: exit 0
39