added poweroff(8)

This commit is contained in:
David van Moolenbroek
2009-06-12 13:02:51 +00:00
parent 86d89ed3f1
commit 24bb7fbb4c
3 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
#!/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