]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - src/initscripts/init.d/mountfs
Merge remote-tracking branch 'jlentfer/igmpproxy' into next
[people/teissler/ipfire-2.x.git] / src / initscripts / init.d / mountfs
index 6f8121888625dfa9be9e671beaefbe7a6fb313ca..d4735d596ac96a4d73633b8a2010ba2991230cdc 100644 (file)
@@ -20,7 +20,6 @@ case "${1}" in
                boot_mesg "Remounting root file system in read-write mode..."
                mount -n -o remount,rw / &>/dev/null
                evaluate_retval
-               sleep 1
 
                # Remove fsck-related file system watermarks.
                rm -f /fastboot /forcefsck
@@ -41,11 +40,19 @@ 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