wok diff hal/stuff/hal-scripts.u @ rev 16750
Down slitaz-boot-scripts (5.6.1) init fails to boot
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Sun Jun 15 02:29:48 2014 +0000 (2014-06-15) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/hal/stuff/hal-scripts.u Sun Jun 15 02:29:48 2014 +0000 1.3 @@ -0,0 +1,21 @@ 1.4 +--- hal-0.5.13.ori/tools/linux/hal-system-power-reboot-linux Sun Aug 10 15:50:10 2008 1.5 ++++ hal-0.5.13/tools/linux/hal-system-power-reboot-linux Thu Feb 4 23:41:04 2010 1.6 +@@ -1,4 +1,6 @@ 1.7 + #!/bin/sh 1.8 ++# 2010-02-04 erjo@slitaz.org 1.9 ++# * Use reboot first for Busybox. 1.10 + 1.11 + unsupported() { 1.12 + echo "org.freedesktop.Hal.Device.SystemPowerManagement.NotSupported" >&2 1.13 +@@ -7,7 +9,10 @@ 1.14 + } 1.15 + 1.16 + #Try for common tools 1.17 +-if [ -x "/sbin/shutdown" ] ; then 1.18 ++if [ -x "/sbin/reboot" ] ; then 1.19 ++ /sbin/reboot 1.20 ++ exit $? 1.21 ++elif [ -x "/sbin/shutdown" ] ; then 1.22 + /sbin/shutdown -r now 1.23 + exit $? 1.24 + elif [ -x "/usr/sbin/shutdown" ] ; then