URI:
       tadd on/off to susp - scripts - random scripts
  HTML git clone git://parazyd.org/scripts.git
   DIR Log
   DIR Files
   DIR Refs
       ---
   DIR commit c02ef73e1723848dafd42fc58ff9f9f0535ca257
   DIR parent b2b6847024c0af0fdde89e3fccbde871b3e7ecb9
  HTML Author: parazyd <parazyd@dyne.org>
       Date:   Fri, 17 Jun 2016 09:59:44 +0200
       
       add on/off to susp
       
       Diffstat:
         M susp                                |       9 ++++++++-
       
       1 file changed, 8 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/susp b/susp
       t@@ -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