wok-current view hal/stuff/hal-scripts.u @ rev 18401
open-vm-tools: more deps attempt
author | Nathan Neulinger <nneul@neulinger.org> |
---|---|
date | Sat Sep 19 03:40:34 2015 +0000 (2015-09-19) |
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