initskripts: add disc sync before unmounting filesystems.

This commit is contained in:
Arne Fitzenreiter
2012-01-21 20:20:57 +01:00
parent 9347464405
commit 4de55e0b3d
2 changed files with 5 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
etc/system-release
etc/issue
etc/rc.d/init.d/mountfs
etc/rc.d/init.d/smartenabler
srv/web/ipfire/cgi-bin/chpasswd.cgi
srv/web/ipfire/cgi-bin/hardwaregraphs.cgi

View File

@@ -40,6 +40,10 @@ case "${1}" in
;;
stop)
boot_mesg "Syncing discs..."
sync && sync
evaluate_retval
boot_mesg "Unmounting all other currently mounted file systems..."
umount -a -d -r &>/dev/null
evaluate_retval