From bbe7e5ba80df1dd6489651cf9f321640beddeac7 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sun, 28 May 2023 10:08:30 +0800 Subject: update --- auto-update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'auto-update.sh') diff --git a/auto-update.sh b/auto-update.sh index d6f4b36..a2b6581 100755 --- a/auto-update.sh +++ b/auto-update.sh @@ -2,7 +2,7 @@ while true; do - if [[ "$(systemctl is-system-running)" == "running" ]]; then + if [[ "$(systemctl is-system-running)" == "running" || "$(systemctl is-system-running)" == "degraded" ]]; then if [[ "$(xprintidle)" -gt 600000 ]]; then # Changed from 600000 (10 minutes) to 3600000 (1 hour) #sudo #exec sudo /usr/bin/reflector @/etc/xdg/reflector/reflector.conf & touch /home/system/updated-via-auto-update -- cgit v1.2.3