1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00
openmptcprouter-feeds/openmptcprouter/files/etc/init.d/fengshan
2023-06-24 23:23:23 +08:00

14 lines
No EOL
418 B
Bash
Executable file
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/sh /etc/rc.common
START=99
start()
{
tem=$(cat /sys/class/thermal/thermal_zone0/temp)
echo $tem
if [ $tem -ge 60000 ] ; then # 温度高于 60 风扇开始转可修改正常使用设置为55000
echo 1 > /sys/class/leds/green:fengshan/brightness;
elif [ $tem -le 50000 ] ; then # 温度低于 50 速度降低,可修改
echo 0 > /sys/class/leds/green:fengshan/brightness;
echo "temdown"
fi #多加了fi
}