]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: fix D-Link fan control script 22531/head
authorAndreas Böhler <dev@aboehler.at>
Fri, 20 Mar 2026 20:24:48 +0000 (21:24 +0100)
committerRobert Marko <robimarko@gmail.com>
Mon, 23 Mar 2026 10:27:26 +0000 (11:27 +0100)
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>
target/linux/realtek/base-files/etc/uci-defaults/04_dlinkfan

index 17cc6494388f25bdb8a9b60a137c3961199bb538..a06768efa43289f7737e5c579e26aaf2d4e4b15e 100644 (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