7.1
Rev | Line | |
---|
[1c48007] | 1 | #!/bin/sh
|
---|
[f3f65e73] | 2 | # Begin $RC_BASE/init.d/mountvirtfs
|
---|
[1c48007] | 3 |
|
---|
| 4 | ### BEGIN INIT INFO
|
---|
[9f318ba] | 5 | # Provides: mountvirtfs
|
---|
[1c48007] | 6 | # Required-Start:
|
---|
| 7 | # Should-Start:
|
---|
| 8 | # Required-Stop:
|
---|
| 9 | # Should-Stop:
|
---|
[010d108] | 10 | # Default-Start: S
|
---|
[1c48007] | 11 | # Default-Stop:
|
---|
[d93bdd1e] | 12 | # Short-Description: Mounts /sys, /proc, and /run virtual (kernel) filesystems.
|
---|
| 13 | # Description: Mounts /sys, /proc, and run virtual (kernel) filesystems.
|
---|
[1c48007] | 14 | # X-LFS-Provided-By: LFS
|
---|
| 15 | ### END INIT INFO
|
---|
| 16 |
|
---|
| 17 | . /lib/lsb/init-functions
|
---|
| 18 |
|
---|
| 19 | case "${1}" in
|
---|
| 20 | start)
|
---|
[d93bdd1e] | 21 | message="Mounting virtual file systems:"
|
---|
[1c48007] | 22 |
|
---|
| 23 | if ! mountpoint /proc > /dev/null; then
|
---|
| 24 | message="${message}${INFO} /proc${NORMAL}"
|
---|
| 25 | mount -n /proc || failed=1
|
---|
| 26 | fi
|
---|
| 27 |
|
---|
| 28 | if ! mountpoint /sys > /dev/null; then
|
---|
| 29 | message="${message}${INFO} /sys${NORMAL}"
|
---|
| 30 | mount -n /sys || failed=1
|
---|
| 31 | fi
|
---|
| 32 |
|
---|
[dc55fb5e] | 33 | # create needed directories in /run
|
---|
| 34 | mkdir /run/{var,lock,shm} || failed=1
|
---|
[fa78391] | 35 | chmod 1777 /run/shm
|
---|
[9f318ba] | 36 |
|
---|
[1c48007] | 37 | (exit ${failed})
|
---|
| 38 | evaluate_retval standard
|
---|
| 39 | ;;
|
---|
| 40 |
|
---|
| 41 | *)
|
---|
| 42 | echo "Usage: ${0} {start}"
|
---|
| 43 | exit 1
|
---|
| 44 | ;;
|
---|
| 45 | esac
|
---|
| 46 |
|
---|
[f3f65e73] | 47 | # End $RC_BASE/init.d/mountvirtfs
|
---|
Note:
See
TracBrowser
for help on using the repository browser.