mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Add hibernation and sleep support for OpenRC
This commit is contained in:
parent
5c3c05d849
commit
4982db192a
@ -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="\
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user