openrc/scripts/shutdown.in
William Hubbs 84d140a1f6 scripts/shutdown: pass --single to openrc-shutdown
Sysvinit shutdown has a default of single user mode, but openrc-shutdown
makes you choose a default action. Because of this, the shutdown wrapper
needs to pass --single to openrc-shutdown.
2017-06-07 10:59:42 -05:00

9 lines
134 B
Plaintext

#!@SHELL@
args="$@"
case "$@" in
*--single*|*-s*) args="$@" ;;
*) args="--single $@";;
esac
exec @SBINDIR@/openrc-shutdown "$args"