diff options
Diffstat (limited to 'scripts/halt.in')
-rw-r--r-- | scripts/halt.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/halt.in b/scripts/halt.in index 70e93662..209dc130 100644 --- a/scripts/halt.in +++ b/scripts/halt.in @@ -21,4 +21,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}" |