diff options
| author | littleblack111 <jerrylam110209@gmail.com> | 2023-05-28 10:08:30 +0800 |
|---|---|---|
| committer | littleblack111 <jerrylam110209@gmail.com> | 2023-05-28 10:08:30 +0800 |
| commit | bbe7e5ba80df1dd6489651cf9f321640beddeac7 (patch) | |
| tree | e49f0de5f0b974638b575fbb0e8b0cca2c3b275f /auto-update.sh | |
| parent | d3962b826c02b66265bd2617d231f9c22ffc6445 (diff) | |
update
Diffstat (limited to 'auto-update.sh')
| -rwxr-xr-x | auto-update.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
