From: Mike Westerhof Date: Mon, 8 Dec 2008 04:33:07 +0000 (-0600) Subject: slugos-init: cleanup work, eliminate a warning messages at boot time. X-Git-Tag: Release-2010-05/1~4842 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdf3dc5e72a7bfa032a3ddc2aa48955911c0aa5d;p=openembedded.git slugos-init: cleanup work, eliminate a warning messages at boot time. --- 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