SVN: rc-scripts/trunk/rc.d/rc.shutdown

patrys patrys at pld-linux.org
Thu Mar 27 16:19:57 CET 2008


Author: patrys
Date: Thu Mar 27 16:19:57 2008
New Revision: 9687

Modified:
   rc-scripts/trunk/rc.d/rc.shutdown
Log:
- force reboot/halt to work with other init daemons


Modified: rc-scripts/trunk/rc.d/rc.shutdown
==============================================================================
--- rc-scripts/trunk/rc.d/rc.shutdown	(original)
+++ rc-scripts/trunk/rc.d/rc.shutdown	Thu Mar 27 16:19:57 2008
@@ -167,12 +167,12 @@
 		       [ -x /sbin/poweroff-ups ] && /sbin/poweroff-ups
 	       fi
 	fi
-	[ "$previous" != "unknown" ] && eval halt -d -p
+	[ "$previous" != "unknown" ] && eval halt -d -p -f
 else
 	show "Please stand by while rebooting the $_rebootwhat"; ok
 	[ -f /fastboot ] && (show "On the next boot fsck will be skipped."; ok)
 	[ -x /sbin/kexec ] && /sbin/kexec -e
-	[ "$previous" != "unknown" ] && eval reboot -d
+	[ "$previous" != "unknown" ] && eval reboot -d -f
 fi
 
 # This must be last line !


More information about the pld-cvs-commit mailing list