--- tools/bsdsunix/hal-system-power-reboot-bsdsunix.orig 2016-12-05 16:21:28 UTC +++ tools/bsdsunix/hal-system-power-reboot-bsdsunix @@ -0,0 +1,18 @@ +#!/bin/sh + +unsupported() { + echo "org.freedesktop.Hal.Device.SystemPowerManagement.NotSupported" >&2 + echo "No reboot command found" >&2 + exit 1 +} + +#Try for common tools +if [ -x "/sbin/shutdown" ] ; then + /sbin/shutdown -r now + exit $? +elif [ -x "/usr/sbin/shutdown" ] ; then + /usr/sbin/shutdown -r now + exit $? +else + unsupported +fi