Add hibernation and sleep support for OpenRC

This commit is contained in:
Ethan Marshall 2021-04-09 13:05:18 +01:00
parent 5c3c05d849
commit 4982db192a
No known key found for this signature in database
GPG Key ID: EC2FAEF4DB8968D8

View File

@ -5,7 +5,7 @@
# For non-systemd init systems.
case "$(readlink -f /sbin/init)" in
*runit*) slp="sudo -A zzz -z"; hib="sudo -A zzz -Z" ;;
*openrc*) reb="sudo -A openrc-shutdown -r"; shut="sudo -A openrc-shutdown -p 0" ;;
*openrc*) slp="echo mem | sudo -A tee /sys/power/state"; hib="echo disk | sudo -A tee /sys/power/state"; reb="sudo -A openrc-shutdown -r"; shut="sudo -A openrc-shutdown -p 0" ;;
esac
cmds="\