From 84d140a1f6abf95a4170d13527152d3ab14e6613 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Wed, 7 Jun 2017 10:59:42 -0500 Subject: 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. --- scripts/shutdown.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/shutdown.in b/scripts/shutdown.in index 6bb65260..4f6ba637 100644 --- a/scripts/shutdown.in +++ b/scripts/shutdown.in @@ -1,3 +1,8 @@ #!@SHELL@ -exec @SBINDIR@/openrc-shutdown "$@" +args="$@" +case "$@" in + *--single*|*-s*) args="$@" ;; + *) args="--single $@";; +esac +exec @SBINDIR@/openrc-shutdown "$args" -- cgit v1.2.3