]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - src/initscripts/init.d/mountfs
leds: disable all led's at halt.
[people/teissler/ipfire-2.x.git] / src / initscripts / init.d / mountfs
index 01ecafde8c7d9471e731e7bff19c8060789d5bc1..d4735d596ac96a4d73633b8a2010ba2991230cdc 100644 (file)
@@ -42,13 +42,17 @@ case "${1}" in
        stop)
                boot_mesg "Syncing discs..."
                sync && sync
+               sleep 2
+               sync && sync
                evaluate_retval
 
                boot_mesg "Unmounting all other currently mounted file systems..."
                umount -a -d -r &>/dev/null
                evaluate_retval
-               ;;
 
+               # mount /sys again for led control at halt
+               mount /sys 2>&1 >/dev/null
+               ;;
        *)
                echo "Usage: ${0} {start|stop}"
                exit 1