1
0
Fork 0
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:
suyuan 2023-07-27 02:26:32 +08:00
parent d07cc7489c
commit bf6d18d07d

View file

@ -1,16 +1,17 @@
#!/bin/sh /etc/rc.common #!/bin/sh /etc/rc.common
START=99 START=20
start()
{
# 温度阈值设置 # 温度阈值设置
HIGH_THRESHOLD=60000 HIGH_THRESHOLD=60000
LOW_THRESHOLD=50000 LOW_THRESHOLD=50000
start() { # 读取初始温度值
temperature=$(cat /sys/class/thermal/thermal_zone0/temp) temperature=$(cat /sys/class/thermal/thermal_zone0/temp)
echo "初始温度:$temperature" echo "初始温度:$temperature"
while true; do # 获取当前温度值
temperature=$(cat /sys/class/thermal/thermal_zone0/temp) temperature=$(cat /sys/class/thermal/thermal_zone0/temp)
echo "当前温度:$temperature" echo "当前温度:$temperature"
@ -23,7 +24,5 @@ start() {
echo "风扇低转速" echo "风扇低转速"
logger -t "fengshandown" "温度正常" logger -t "fengshandown" "温度正常"
fi fi
sleep 30 # 设置循环间隔为30秒
done done
} }