8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / hal / tools / sunos / hal-system-power-reboot-sunos.sh
blobf41dd563087033d56d185d5cd3134010c564ae7c
1 #!/bin/sh
3 # hal-system-power-reboot-sunos.sh
5 # Licensed under the Academic Free License version 2.1
8 unsupported() {
9 echo "org.freedesktop.Hal.Device.SystemPowerManagement.NotSupported" >&2
10 echo "No reboot command found" >&2
11 exit 1
14 if [ -x "/sbin/init" ] ; then
15 /sbin/init 6
16 exit $?
17 else
18 unsupported