wok annotate hal/stuff/hal-scripts.u @ rev 7205

Up: yasm to 1.1.0.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Nov 09 16:19:19 2010 +0000 (2010-11-09)
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