wok-6.x view hal/stuff/hal-scripts.u @ rev 18117

Up: cookutils (741): add descriptions.txt to the bundle.tar.lzma
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Jun 07 00:49:14 2015 +0300 (2015-06-07)
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