diff options
author | Mike Westerhof <mwester@dls.net> | 2008-12-07 22:33:07 -0600 |
---|---|---|
committer | Mike Westerhof <mwester@dls.net> | 2008-12-07 22:33:07 -0600 |
commit | bdf3dc5e72a7bfa032a3ddc2aa48955911c0aa5d (patch) | |
tree | c0cd22c9c67cf0eb284ce0f50271b9206078a8db /packages/slugos-init/files | |
parent | 263fa9f3f5dc2708a562a3e25c420b1b9b9dad45 (diff) |
slugos-init: cleanup work, eliminate a warning messages at boot time.
Diffstat (limited to 'packages/slugos-init/files')
-rw-r--r-- | packages/slugos-init/files/boot/flash | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/packages/slugos-init/files/boot/flash b/packages/slugos-init/files/boot/flash index 1390597ce7..01c20e963a 100644 --- a/packages/slugos-init/files/boot/flash +++ b/packages/slugos-init/files/boot/flash @@ -11,9 +11,17 @@ leds beep . /etc/default/functions leds boot system -test -x /sbin/init && exec /sbin/init +if [ -x /sbin/init ] +then + umount /proc 2>/dev/null + umount /sys 2>/dev/null + exec /sbin/init +fi # fallback if /sbin/init has been deleted (bad!) +# Mount required filesystems if necessary +[ -e /proc/cpuinfo ] || mount -t proc proc /proc +[ -e /sys/class ] || mount -t sysfs sysfs /sys leds boot system panic exec <>/dev/console >&0 2>&0 test -x /sbin/sulogin && exec /sbin/sulogin |