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:
parent
ee886c4482
commit
84d140a1f6
@ -1,3 +1,8 @@
|
|||||||
#!@SHELL@
|
#!@SHELL@
|
||||||
|
|
||||||
exec @SBINDIR@/openrc-shutdown "$@"
|
args="$@"
|
||||||
|
case "$@" in
|
||||||
|
*--single*|*-s*) args="$@" ;;
|
||||||
|
*) args="--single $@";;
|
||||||
|
esac
|
||||||
|
exec @SBINDIR@/openrc-shutdown "$args"
|
||||||
|
Loading…
Reference in New Issue
Block a user