distribution/packages/jelos/sources/scripts/setsuspendmode

10 lines
164 B
Bash
Executable file

#!/bin/bash
. /etc/profile
cat <<EOF >/storage/.config/sleep.conf.d/sleep.conf
[Sleep]
AllowSuspend=yes
SuspendState=${1}
EOF
set_setting system.suspendmode ${1}