X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage1%2Fbootscripts%2Fmountkernfs;fp=stage1%2Fbootscripts%2Fmountkernfs;h=9c3fed53996da9ebb598639cf9c5cc3a0e5bb75c;hb=6d3d50c17b24ef41f917f5776696eca810198092;hp=0000000000000000000000000000000000000000;hpb=6bd766eee64094f4a893c5c168a9dea089888a8d;p=hvlinux.git diff --git a/stage1/bootscripts/mountkernfs b/stage1/bootscripts/mountkernfs new file mode 100755 index 0000000..9c3fed5 --- /dev/null +++ b/stage1/bootscripts/mountkernfs @@ -0,0 +1,27 @@ +#!/bin/sh + +# mountkernfs + +# Source functions library +source /etc/rc.d/init.d/functions + +case "$1" in + start) + # The "-n: option tells mount not to write to the /etc/mtab + # file (because /etc/mtab is a symbolic link to /proc/mounts, + # which we are in the process of mounting). + cmd_run_log_box "Mounting /proc file system" mount -n proc + cmd_run_log_box "Mounting /sys file system" mount sys + ;; + + stop) + umount -n proc + ;; + + *) + echo "Usage: $0 {start|stop}" + exit ${EXIT_CODE_FAILURE} + ;; +esac + +exit $?