wok view hal/stuff/hal-scripts.u @ rev 25403

updated vzctl (3.0.25.1 -> 4.11.1)
author Hans-G?nter Theisgen
date Tue Aug 02 16:35:24 2022 +0100 (2022-08-02)
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