wok-6.x view hal/stuff/hal-scripts.u @ rev 9676
Fixed tazdev. Tazwok uses mercurial| not hg| in WGET_URL.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed May 04 16:22:49 2011 +0000 (2011-05-04) |
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