aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/shutdown.in7
1 files changed, 6 insertions, 1 deletions
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"