Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / sysutils / hal / files / tools-netbsd / hal-system-power-reboot-netbsd
blob6ee67097d1219857e21e5d0d0eff7fc03f82c902
1 #!/bin/sh
2 # $NetBSD$
4 unsupported() {
5 echo "org.freedesktop.Hal.Device.SystemPowerManagement.NotSupported" >&2
6 echo "No reboot command found" >&2
7 exit 1
10 #Try for common tools
11 if [ -x "/sbin/shutdown" ] ; then
12 /sbin/shutdown -r now
13 exit $?
14 elif [ -x "/usr/sbin/shutdown" ] ; then
15 /usr/sbin/shutdown -r now
16 exit $?
17 else
18 unsupported