]>
git.ipfire.org Git - ipfire-2.x.git/blob - src/initscripts/init.d/mountkernfs
05e8eb67aa6e46f52f8fb1de1feb6106b50e6d1f
2 ########################################################################
3 # Begin $rc_base/init.d/mountkernfs
5 # Description : Mount proc and sysfs
7 # Authors : Gerard Beekmans - gerard@linuxfromscratch.org
13 ########################################################################
20 boot_mesg
-n "Mounting kernel-based file systems:" ${INFO}
22 if ! mountpoint
/proc
&> /dev
/null
; then
23 boot_mesg
-n " /proc" ${NORMAL}
24 mount
-n -t proc
/proc
/proc || failed
=1
27 if ! mountpoint
/sys
&> /dev
/null
; then
28 boot_mesg
-n " /sys" ${NORMAL}
29 mount
-n -t sysfs
/sys
/sys || failed
=1
32 if ! mountpoint
/run
&> /dev
/null
; then
33 boot_mesg
-n " /run" ${NORMAL}
34 mount
-n -t tmpfs
-o nosuid
,nodev
,mode
=755,size
=8M
/run
/run || failed
=1
37 if ! mountpoint
/var
/lock
&>/dev
/null
; then
38 boot_mesg
-n " /var/lock" ${NORMAL}
39 mount
-n -t tmpfs
-o nosuid
,nodev
,size
=8M
/var
/lock
/var
/lock || failed
=1
42 boot_mesg
"" ${NORMAL}
49 echo "Usage: ${0} {start}"
54 # End $rc_base/init.d/mountkernfs