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-06-24 23:23:23 +08:00
parent fe913a633f
commit da1809f6a3

View file

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