scripts

random scripts
git clone git://parazyd.org/scripts.git
Log | Files | Refs

commit c02ef73e1723848dafd42fc58ff9f9f0535ca257
parent b2b6847024c0af0fdde89e3fccbde871b3e7ecb9
Author: parazyd <parazyd@dyne.org>
Date:   Fri, 17 Jun 2016 09:59:44 +0200

add on/off to susp

Diffstat:
Msusp | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/susp b/susp @@ -1,2 +1,9 @@ #!/bin/sh -echo mem > /sys/power/state +# +# parazyd - (c) wtfpl 2016 + +case "$1" in + on) sed -i '30,34s/#//' /etc/acpi/default.sh ;; + off) sed -i '30,34s/^/#/' /etc/acpi/default.sh ;; + *) echo mem > /sys/power/state ;; +esac