Delay argument "-d" requires number
Arguments "-f -d -n" fails with "invalid number -n", because -d delay expects number of seconds.master
parent
a60af53413
commit
05dc158e3c
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue