if [ "$SINIT_SHUTDOWN_HOOKS" = 1 ]; then case "$1" in reboot|poweroff) ;; *) echo "Invalid action '$1' for rc.shutdown" 1>&2 exit 1 ;; esac fi