]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - src/initscripts/init.d/reboot
iptables: Replace state module by conntrack module.
[people/teissler/ipfire-2.x.git] / src / initscripts / init.d / reboot
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
                ;;