]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
initskripts: do more syncing on shutdown.
authorArne Fitzenreiter <arne_f@ipfire.org>
Wed, 21 Nov 2012 17:27:44 +0000 (18:27 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Wed, 21 Nov 2012 17:27:44 +0000 (18:27 +0100)
config/rootfiles/core/65/filelists/files
src/initscripts/init.d/halt
src/initscripts/init.d/minidlna [changed mode: 0755->0644]
src/initscripts/init.d/mountfs
src/initscripts/init.d/network-vlans [changed mode: 0755->0644]
src/initscripts/init.d/reboot

index 398d7227dd5f2807c06cd4325286c9c3ab061298..97f63a23296b10dcd8b9fa10d35f1c2e2217f7d7 100644 (file)
@@ -3,10 +3,13 @@ etc/issue
 etc/sysctl.conf
 etc/securetty
 opt/pakfire/etc/pakfire.conf
-etc/rc.d/init.d/partresize
 etc/rc.d/init.d/firewall
 etc/rc.d/init.d/fsresize
+etc/rc.d/init.d/halt
+etc/rc.d/init.d/mountfs
 etc/rc.d/init.d/network
+etc/rc.d/init.d/partresize
+etc/rc.d/init.d/reboot
 etc/rc.d/init.d/sendsignals
 etc/rc.d/init.d/setclock
 etc/rc.d/init.d/tmpfs
index f3b016c38680a67914724ee79c43516fbfbb8388..01f7234ef404f5d86e90a9fc2ef5ea6e00147731 100644 (file)
 
 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
                ;;
        *)
old mode 100755 (executable)
new mode 100644 (file)
index 01ecafde8c7d9471e731e7bff19c8060789d5bc1..c56100979f1d1f4271212553fa80eb3ac92acabb 100644 (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..."
old mode 100755 (executable)
new mode 100644 (file)
index fec0c1f6f6e372ca2e457541c3d793f48038d033..0602ac4e3469d76bd98ccf5811297f209ef98ebb 100644 (file)
 
 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
                ;;