kirkwood: use 3 temperature sensors for Zyxel NSA310B
authorThomas Beckler <thomas.beckler@hotmail.com>
Sat, 30 May 2020 21:40:03 +0000 (23:40 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Fri, 5 Feb 2021 21:21:08 +0000 (22:21 +0100)
commit450ec48d61254e241ecfaa7d0cf9dec40473469d
tree2fd005a0aee3179e8fb718ad59e1973ae1c34cd7
parent8d4afab0abc3fc0ea8a240077a5b8dddecbfd6eb
kirkwood: use 3 temperature sensors for Zyxel NSA310B

Instead of taking the input of one temperature sensor (temp1), the
script takes into account three temperature sensors to control the
PWM of the cooling fan.

temp1 -> placed on main board
temp2 -> placed on main board
temp3 -> placed on or close to chipset

All three temperatures give valid input for the PWM of the fan on
NSA310 and are actually changing.

Tested on two NSA310.

Signed-off-by: Thomas Beckler <thomas.beckler@hotmail.com>
Reviewed-by: Alberto Bursi <bobafetthotmail@gmail.com>
[commit title/message facelift, code cleanup]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/kirkwood/base-files/etc/init.d/hwmon_fancontrol