wok diff hal/stuff/hal-scripts.u @ rev 21011
updated gtklife (5.1 -> 5.2)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Mar 09 15:17:33 2019 +0100 (2019-03-09) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/hal/stuff/hal-scripts.u Sat Mar 09 15:17:33 2019 +0100 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