1 2 3 4 5 6 7 8 9 10
if [ "$SINIT_SHUTDOWN_HOOKS" = 1 ]; then case "$1" in reboot|poweroff) ;; *) echo "Invalid action '$1' for rc.shutdown" 1>&2 exit 1 ;; esac fi