1
1

realtek: fix D-Link fan control script

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>
(cherry picked from commit 41d6584d9b)
This commit is contained in:
Andreas Böhler 2026-03-20 21:24:48 +01:00 committed by Hauke Mehrtens
parent 16775c4852
commit 0bfaaa65d5

View File

@ -10,7 +10,7 @@ case "$board" in
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