wok view hal/stuff/hal-scripts.u @ rev 24379
modified recipe for libboost-locale-dev
author | Hans-G?nter Theisgen |
---|---|
date | Sun Feb 06 10:04:11 2022 +0100 (2022-02-06) |
parents | |
children |
line source
1 --- hal-0.5.13.ori/tools/linux/hal-system-power-reboot-linux Sun Aug 10 15:50:10 2008
2 +++ hal-0.5.13/tools/linux/hal-system-power-reboot-linux Thu Feb 4 23:41:04 2010
3 @@ -1,4 +1,6 @@
4 #!/bin/sh
5 +# 2010-02-04 erjo@slitaz.org
6 +# * Use reboot first for Busybox.
8 unsupported() {
9 echo "org.freedesktop.Hal.Device.SystemPowerManagement.NotSupported" >&2
10 @@ -7,7 +9,10 @@
11 }
13 #Try for common tools
14 -if [ -x "/sbin/shutdown" ] ; then
15 +if [ -x "/sbin/reboot" ] ; then
16 + /sbin/reboot
17 + exit $?
18 +elif [ -x "/sbin/shutdown" ] ; then
19 /sbin/shutdown -r now
20 exit $?
21 elif [ -x "/usr/sbin/shutdown" ] ; then