From bdf3dc5e72a7bfa032a3ddc2aa48955911c0aa5d Mon Sep 17 00:00:00 2001 From: Mike Westerhof Date: Sun, 7 Dec 2008 22:33:07 -0600 Subject: slugos-init: cleanup work, eliminate a warning messages at boot time. --- packages/slugos-init/files/boot/flash | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'packages') 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 -- cgit v1.2.3