[unmaintained] init scripts for sinit
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

14 lines
206 B

#!/bin/sh
#
# poweroff - shuts down the system
# (c) ix 2016
#
check_root() {
if [ "$(id -u)" != "0" ]; then
echo "poweroff: Operation not permitted."
exit 1
fi
}
check_root && kill -s USR1 1