mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 10:52:57 +02:00
initskripts: do more syncing on shutdown.
This commit is contained in:
@@ -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
0
src/initscripts/init.d/minidlna
Executable file → Normal 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
0
src/initscripts/init.d/network-vlans
Executable file → Normal 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
|
||||
;;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user