wok-stable annotate hal/stuff/hal-scripts.u @ rev 9823
aqualung: fix BUILD_DEPENDS
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun May 15 04:21:31 2011 +0200 (2011-05-15) |
parents | |
children |
rev | line source |
---|---|
erjo@4879 | 1 --- hal-0.5.13.ori/tools/linux/hal-system-power-reboot-linux Sun Aug 10 15:50:10 2008 |
erjo@4879 | 2 +++ hal-0.5.13/tools/linux/hal-system-power-reboot-linux Thu Feb 4 23:41:04 2010 |
erjo@4879 | 3 @@ -1,4 +1,6 @@ |
erjo@4879 | 4 #!/bin/sh |
erjo@4879 | 5 +# 2010-02-04 erjo@slitaz.org |
erjo@4879 | 6 +# * Use reboot first for Busybox. |
erjo@4879 | 7 |
erjo@4879 | 8 unsupported() { |
erjo@4879 | 9 echo "org.freedesktop.Hal.Device.SystemPowerManagement.NotSupported" >&2 |
erjo@4879 | 10 @@ -7,7 +9,10 @@ |
erjo@4879 | 11 } |
erjo@4879 | 12 |
erjo@4879 | 13 #Try for common tools |
erjo@4879 | 14 -if [ -x "/sbin/shutdown" ] ; then |
erjo@4879 | 15 +if [ -x "/sbin/reboot" ] ; then |
erjo@4879 | 16 + /sbin/reboot |
erjo@4879 | 17 + exit $? |
erjo@4879 | 18 +elif [ -x "/sbin/shutdown" ] ; then |
erjo@4879 | 19 /sbin/shutdown -r now |
erjo@4879 | 20 exit $? |
erjo@4879 | 21 elif [ -x "/usr/sbin/shutdown" ] ; then |