diff options
Diffstat (limited to 'scripts/reboot.in')
-rw-r--r-- | scripts/reboot.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/reboot.in b/scripts/reboot.in index 60251d8c..bf50967a 100644 --- a/scripts/reboot.in +++ b/scripts/reboot.in @@ -22,4 +22,9 @@ if [ -z "${poweroff_arg}" ]; then poweroff_arg=--reboot 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}" |