When the fan control script was first implemented, a variable was wrongly
named. The fan probably never turns on - fix that.
Signed-off-by: Andreas Böhler <dev@aboehler.at>
Link: https://github.com/openwrt/openwrt/pull/22531
Signed-off-by: Robert Marko <robimarko@gmail.com>
d-link,dgs-1210-28p-f|d-link,dgs-1210-28mp-f)
# Enable fan control
FAN_CTRL='/sys/class/hwmon/hwmon0'
- echo 1 > "$FAN_PATH/pwm1_enable"
+ echo 1 > "$FAN_CTRL/pwm1_enable"
# Set fan script execution in crontab
grep -s -q fan_ctrl.sh /etc/crontabs/root && exit 0