From 41d6584d9bd7628fe836ef63904748892d632679 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20B=C3=B6hler?= Date: Fri, 20 Mar 2026 21:24:48 +0100 Subject: [PATCH] realtek: fix D-Link fan control script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Link: https://github.com/openwrt/openwrt/pull/22531 Signed-off-by: Robert Marko --- target/linux/realtek/base-files/etc/uci-defaults/04_dlinkfan | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/realtek/base-files/etc/uci-defaults/04_dlinkfan b/target/linux/realtek/base-files/etc/uci-defaults/04_dlinkfan index 17cc649438..a06768efa4 100644 --- a/target/linux/realtek/base-files/etc/uci-defaults/04_dlinkfan +++ b/target/linux/realtek/base-files/etc/uci-defaults/04_dlinkfan @@ -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