]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
airoha: an7581: fix w1700k fan script 22391/head
authorAndrew LaMarche <andrewjlamarche@gmail.com>
Thu, 12 Mar 2026 13:22:03 +0000 (13:22 +0000)
committerRobert Marko <robimarko@gmail.com>
Mon, 16 Mar 2026 08:42:13 +0000 (09:42 +0100)
W1700K fan script is missing the #!/bin/sh /etc/rc.common shebang and
requires execution bits set. Also, set the fallback to hwmon 3 instead
of 5, since the new RTL PHY driver was not merged.

Signed-off-by: Andrew LaMarche <andrewjlamarche@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/22391
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/airoha/an7581/base-files/etc/init.d/airoha_fan [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 0705402..ab9eeca
@@ -1,3 +1,4 @@
+#!/bin/sh /etc/rc.common
 #
 # Copyright (C) 2025 openwrt.org
 #
@@ -14,7 +15,7 @@ find_nct7802()
                        return
                fi
        done
-       echo "/sys/class/hwmon/hwmon5" # fallback
+       echo "/sys/class/hwmon/hwmon3" # fallback
 }
 
 boot()