aboutsummaryrefslogtreecommitdiff
path: root/scripts/poweroff.in
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/poweroff.in')
-rw-r--r--scripts/poweroff.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/poweroff.in b/scripts/poweroff.in
index 1c260d32..4e944bdc 100644
--- a/scripts/poweroff.in
+++ b/scripts/poweroff.in
@@ -20,4 +20,9 @@ if [ -z "${poweroff_arg}" ]; then
poweroff_arg=--poweroff
fi
-exec @SBINDIR@/openrc-shutdown ${option_arg} ${poweroff_arg} "$@"
+script_args="$@"
+if [ -z "${script_args}" ]; then
+ script_args=now
+fi
+
+exec @SBINDIR@/openrc-shutdown ${option_arg} ${poweroff_arg} "${script_args}"