added poweroff(8)
This commit is contained in:
@@ -45,6 +45,7 @@ usr: \
|
||||
/usr/bin/floppysetup \
|
||||
/usr/bin/packit \
|
||||
/usr/bin/packman \
|
||||
/usr/bin/poweroff \
|
||||
/usr/bin/spell \
|
||||
/usr/bin/srccrc \
|
||||
/usr/bin/svclog \
|
||||
@@ -150,6 +151,9 @@ clean:
|
||||
/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 $? $@
|
||||
|
||||
|
||||
13
commands/scripts/poweroff.sh
Normal file
13
commands/scripts/poweroff.sh
Normal 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
|
||||
Reference in New Issue
Block a user