Specified shutdown time (0 seconds) for openrc shutdown option (#925)

If you don't specify it, it won't work:
$ sudo -A openrc-shutdown -p
 * openrc-shutdown: No shutdown time specified
This commit is contained in:
Eike Flath 2021-03-30 18:09:33 +02:00 committed by GitHub
parent 9c5faeeb95
commit 8e144b60ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,7 +5,7 @@
# For non-systemd init systems.
case "$(readlink -f /sbin/init)" in
*runit*) hib="sudo -A zzz" ;;
*openrc*) reb="sudo -A openrc-shutdown -r"; shut="sudo -A openrc-shutdown -p" ;;
*openrc*) reb="sudo -A openrc-shutdown -r"; shut="sudo -A openrc-shutdown -p 0" ;;
esac
cmds="\