work work werk
[mikesnafu-overlay.git] / initscripts / mountkernfs
blobdcc1f5137e92df23d8867d0204597b95f8e1b6fe
1 #!/bin/sh
2 #Begin $rc_base/init.d/mountkernfs
3 #$LastChangedBy: mike $
4 #Date: 2008-05-15 2:00:10 -0300 (Thur, 15 May 2008) $
5 . /etc/sysconfig/rc
6 . ${rc_functions}
8 case "${1}" in
9 start)
10 echo ""
11 echo "Elinux v0.1-rc1 (2008)"
12 echo ""
13 boot_mesg -n "Mounting kernel-based file systems:" ${INFO}
15 if ! mountpoint /proc >/dev/null; then
16 boot_mesg -n " /proc" ${NORMAL}
17 mount -n /proc || failed=1
20 if ! mountpoint /sys >/dev/null; then
21 boot_mesg -n " /sys" ${NORMAL}
22 mount -n /sys || failed=1
25 boot_mesg "" ${NORMAL}
27 (exit ${failed})
28 evaluate_retval
32 echo "Usage: ${0} {start}"
33 exit 1
35 esac