Delay argument "-d" requires number

Arguments "-f -d -n" fails with "invalid number -n", because -d delay expects number of seconds.
master
masem 2018-11-14 00:48:39 +01:00 committed by Harald Hoyer
parent a60af53413
commit 05dc158e3c
1 changed files with 3 additions and 3 deletions

View File

@ -112,17 +112,17 @@ getarg 'rd.break=shutdown' && emergency_shell --shutdown shutdown "Break before


case "$ACTION" in case "$ACTION" in
reboot|poweroff|halt) reboot|poweroff|halt)
$ACTION -f -d -n $ACTION -f -n
warn "$ACTION failed!" warn "$ACTION failed!"
;; ;;
kexec) kexec)
kexec -e kexec -e
warn "$ACTION failed!" warn "$ACTION failed!"
reboot -f -d -n reboot -f -n
;; ;;
*) *)
warn "Shutdown called with argument '$ACTION'. Rebooting!" warn "Shutdown called with argument '$ACTION'. Rebooting!"
reboot -f -d -n reboot -f -n
;; ;;
esac esac