wok-next annotate hal/stuff/hal-scripts.u @ rev 9127

Fixed gcc3 to only gcc-VERSION.tar.lzma source instead of gcc3-VERSION.tar.lzma. Also removed slitaz-toolchain in h8300-gcc3 build depends since we don't need it anymore.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Mar 05 15:19:01 2011 +0000 (2011-03-05)
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