/usr/bin/floppysetup \
/usr/bin/packit \
/usr/bin/packman \
+ /usr/bin/poweroff \
/usr/bin/spell \
/usr/bin/srccrc \
/usr/bin/svclog \
/usr/bin/packman: packman.sh
install -m 755 -c -o bin $? $@
+/usr/bin/poweroff: poweroff.sh
+ install -m 755 -c -o bin $? $@
+
/usr/bin/spell: spell.sh
install -m 755 -c -o bin $? $@
--- /dev/null
+#!/bin/sh
+#
+# poweroff 1.0 - power off the system Author: David van Moolenbroek
+# 12 Jun 2009
+
+if [ $# -gt 0 ]; then
+ echo "usage: poweroff" >&2
+ exit 1
+fi
+
+PATH=/usr/bin:$PATH
+
+shutdown -x off
--- /dev/null
+.TH POWEROFF 1
+.SH NAME
+poweroff \- power off the machine
+.SH SYNOPSIS
+.B poweroff
+.SH DESCRIPTION
+This command powers off the machine, by calling
+.B shutdown
+and passing the
+.I off
+directive to the boot monitor.
+.SH "SEE ALSO"
+.BR shutdown (8).