xref: /titanic_41/usr/src/cmd/hal/tools/sunos/hal-system-power-reboot-sunos.sh (revision 2a62b4a97f3b5b0ef5f3288ebbfc8509fb793b60)
1#!/bin/sh
2#
3# hal-system-power-reboot-sunos.sh
4#
5# Licensed under the Academic Free License version 2.1
6#
7
8unsupported() {
9	echo "org.freedesktop.Hal.Device.SystemPowerManagement.NotSupported" >&2
10	echo "No reboot command found" >&2
11	exit 1
12}
13
14if [ -x "/sbin/init" ] ; then
15	/sbin/init 6
16	exit $?
17else
18	unsupported
19fi
20