This commit is contained in:
12600k-rog-d4
2026-08-24 00:35:30 +08:00
parent 32b308bc08
commit b673ed62f9
24 changed files with 483 additions and 393 deletions

View File

@@ -0,0 +1,8 @@
TEMP_LOG=/tmp/auto-check-temp.log
> "$TEMP_LOG"
(while true; do
T=$(sensors 2>/dev/null | grep -oP '\+?\d+(\.\d+)?(?=°C)' | head -1)
[ -n "$T" ] && echo "$T" >> "$TEMP_LOG"
sleep "${AUTOCHECK_TEMP_INTERVAL:-10}"
done) &
TEMP_PID=$!