initskripts: do more syncing on shutdown.

This commit is contained in:
Arne Fitzenreiter
2012-11-21 18:27:44 +01:00
parent b9c73f6632
commit 5254aa5195
6 changed files with 18 additions and 2 deletions

View File

@@ -17,6 +17,12 @@
case "${1}" in
stop)
sync && sync
boot_mesg "Remount root readonly..."
mount -f -o remount,ro / > /dev/null 2>&1
evaluate_retval
boot_mesg "Prepare for halt..."
sleep 2
halt -d -f -i -p
;;
*)

0
src/initscripts/init.d/minidlna Executable file → Normal file
View File

View File

@@ -42,6 +42,8 @@ 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..."

0
src/initscripts/init.d/network-vlans Executable file → Normal file
View File

View File

@@ -17,7 +17,12 @@
case "${1}" in
stop)
boot_mesg "Restarting system..."
sync && sync
boot_mesg "Remount root readonly..."
mount -f -o remount,ro / > /dev/null 2>&1
evaluate_retval
boot_mesg "Prepare for reboot..."
sleep 2
reboot -d -f -i
;;