armbian-build/packages/bsp/helios4/fancontrol.patch
Gauthier Provost 5abd71d6b6 Helios4 - Add fancontrol patch
- fix 'too many arguments' error messages
- set pwm to minimum speed when fancontrol exit
2018-02-17 14:08:17 +08:00

23 lines
530 B
Diff

--- /usr/sbin/fancontrol 2018-02-17 13:54:50.065478090 +0800
+++ /usr/sbin/fancontrol 2018-02-17 13:58:56.910831481 +0800
@@ -334,7 +334,7 @@
# No enable file? Just set to max
if [ ! -f $ENABLE ]
then
- echo $MAX > $1
+ echo $MINPWM > $1
return 0
fi
@@ -433,9 +433,9 @@
fi
# If fanspeed-sensor output shall be used, do it
+ min_fanval=100000
if [[ -n ${fan} ]]
then
- min_fanval=100000
fanval=
# A given PWM output can control several fans
for one_fan in $(echo $fan | sed -e 's/+/ /')