Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | #!/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 | # |
| 19 | test "$VERBOSE" != no && echo "Mounting local filesystems..." |
| 20 | mount -at nonfs,nosmbfs,noncpfs 2>/dev/null |
| 21 | |
| 22 | # |
| 23 | # We might have mounted something over /dev, see if /dev/initctl is there. |
| 24 | # |
| 25 | if test ! -p /dev/initctl |
| 26 | then |
| 27 | rm -f /dev/initctl |
| 28 | mknod -m 600 /dev/initctl p |
| 29 | fi |
| 30 | kill -USR1 1 |
| 31 | |
| 32 | # |
| 33 | # Execute swapon command again, in case we want to swap to |
| 34 | # a file on a now mounted filesystem. |
| 35 | # |
| 36 | swapon -a 2> /dev/null |
| 37 | |
| 38 | : exit 0 |
| 39 | |