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:
parent
16775c4852
commit
0bfaaa65d5
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user