source: lsb-bootscripts/etc/init.d/mountvirtfs@ 8476b9e1

7.1
Last change on this file since 8476b9e1 was fa78391, checked in by Matthew Burgess <matthew@…>, 13 years ago

Fix typo.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9695 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 1.1 KB
Line 
1#!/bin/sh
2# Begin $RC_BASE/init.d/mountvirtfs
3
4### BEGIN INIT INFO
5# Provides: mountvirtfs
6# Required-Start:
7# Should-Start:
8# Required-Stop:
9# Should-Stop:
10# Default-Start: S
11# Default-Stop:
12# Short-Description: Mounts /sys, /proc, and /run virtual (kernel) filesystems.
13# Description: Mounts /sys, /proc, and run virtual (kernel) filesystems.
14# X-LFS-Provided-By: LFS
15### END INIT INFO
16
17. /lib/lsb/init-functions
18
19case "${1}" in
20 start)
21 message="Mounting virtual file systems:"
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
33 # create needed directories in /run
34 mkdir /run/{var,lock,shm} || failed=1
35 chmod 1777 /run/shm
36
37 (exit ${failed})
38 evaluate_retval standard
39 ;;
40
41 *)
42 echo "Usage: ${0} {start}"
43 exit 1
44 ;;
45esac
46
47# End $RC_BASE/init.d/mountvirtfs
Note: See TracBrowser for help on using the repository browser.