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
;;
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