Skip to content

Commit b758886

Browse files
committed
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.
1 parent 7ba45de commit b758886

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • target/linux/realtek/base-files/etc/uci-defaults

target/linux/realtek/base-files/etc/uci-defaults/04_dlinkfan

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ case "$board" in
1010
d-link,dgs-1210-28p-f|d-link,dgs-1210-28mp-f)
1111
# Enable fan control
1212
FAN_CTRL='/sys/class/hwmon/hwmon0'
13-
echo 1 > "$FAN_PATH/pwm1_enable"
13+
echo 1 > "$FAN_CTRL/pwm1_enable"
1414

1515
# Set fan script execution in crontab
1616
grep -s -q fan_ctrl.sh /etc/crontabs/root && exit 0

0 commit comments

Comments
 (0)