mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Update fengshan
This commit is contained in:
parent
7f11a0dad2
commit
c67f6d87c1
1 changed files with 12 additions and 17 deletions
|
@ -10,8 +10,7 @@ LOW_THRESHOLD=50000
|
||||||
temperature=$(cat /sys/class/thermal/thermal_zone0/temp)
|
temperature=$(cat /sys/class/thermal/thermal_zone0/temp)
|
||||||
echo "初始温度:$temperature"
|
echo "初始温度:$temperature"
|
||||||
|
|
||||||
start() {
|
# 获取当前温度值
|
||||||
while true; do
|
|
||||||
temperature=$(cat /sys/class/thermal/thermal_zone0/temp)
|
temperature=$(cat /sys/class/thermal/thermal_zone0/temp)
|
||||||
echo "当前温度:$temperature"
|
echo "当前温度:$temperature"
|
||||||
|
|
||||||
|
@ -24,7 +23,3 @@ start() {
|
||||||
echo "风扇低转速"
|
echo "风扇低转速"
|
||||||
logger -t "fengshandown" "温度正常"
|
logger -t "fengshandown" "温度正常"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sleep 30 # 设置循环间隔为30秒
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue