Files
ports/main/sinit/halt
2022-12-07 22:18:52 +08:00

11 lines
201 B
Bash
Executable File

#!/bin/sh
# halt/shutdown/poweroff/reboot script for sinit
case ${0##*/} in
halt|poweroff) opt=USR1;;
shutdown) [ "$1" = "-r" ] && opt=INT || opt=USR1;;
reboot) opt=INT;;
esac
exec kill -s $opt 1