wok-stable diff hal/stuff/hal-scripts.u @ rev 8484
virtualbox-ose: Remove check for makeself and mkisofs. Enabled webservice.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue Feb 08 15:55:04 2011 +0000 (2011-02-08) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/hal/stuff/hal-scripts.u Tue Feb 08 15:55:04 2011 +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