From 0de0f0922a2c3ce0246c99c8f6f276d06cf11531 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Wed, 25 Jun 2025 10:16:49 +0200 Subject: checkpoint --- bin/extra/saveself | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'bin/extra/saveself') diff --git a/bin/extra/saveself b/bin/extra/saveself index 8906a5f..90eba98 100755 --- a/bin/extra/saveself +++ b/bin/extra/saveself @@ -17,20 +17,15 @@ PrevCapacity="$(GetBatteryCapacity)" while true do - sleep 5 Capacity="$(GetBatteryCapacity)" if [ "$Capacity" -lt "$PrevCapacity" ] then if [ "$Capacity" -le "$Threshold" ] then - setsid slock HostName="$(hostname)" if [ "$HostName" = "spring" ] then - doas /usr/sbin/zzz -Z - elif [ "$HostName" = "winter" ] - then - systemctl hibernate + setsid doas /usr/sbin/zzz -Z fi fi PrevCapacity="$Capacity" -- cgit v1.2.3-70-g09d2