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.
This commit is contained in:
William Hubbs 2017-06-07 10:59:42 -05:00
parent ee886c4482
commit 84d140a1f6

View File

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