Author: baggins
Date: Thu Mar 26 15:51:52 2009
New Revision: 10261

Modified:
   rc-scripts/branches/busybox/rc.d/rc.shutdown
Log:
- use halt and reboot from sysvinit (bb halt can't power off the machine)


Modified: rc-scripts/branches/busybox/rc.d/rc.shutdown
==============================================================================
--- rc-scripts/branches/busybox/rc.d/rc.shutdown        (original)
+++ rc-scripts/branches/busybox/rc.d/rc.shutdown        Thu Mar 26 15:51:52 2009
@@ -38,7 +38,7 @@
 run_cmd "Sending all processes the KILL signal" killall5 -9
 
 # Write to wtmp file before unmounting /var
-halt -w
+/sbin/halt -w
 
 if ! is_yes "$VSERVER"; then
        # Turn off swap, then unmount file systems.
@@ -168,12 +168,12 @@
                       [ -x /sbin/poweroff-ups ] && /sbin/poweroff-ups
               fi
        fi
-       [ "$previous" != "unknown" ] && eval halt -f
+       [ "$previous" != "unknown" ] && eval /sbin/halt -d -p -f
 else
        show "Please stand by while rebooting the $_rebootwhat"; ok
        if [ -f /fastboot ]; then
                show "On the next boot fsck will be skipped."; ok
        fi
        [ -x /sbin/kexec ] && /sbin/kexec -e
-       [ "$previous" != "unknown" ] && eval reboot -f
+       [ "$previous" != "unknown" ] && eval /sbin/reboot -d -f
 fi
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to