From 708883c9d2c0d79100b561fda69abf897f691f2d Mon Sep 17 00:00:00 2001 From: Andrew LaMarche Date: Thu, 12 Mar 2026 13:22:03 +0000 Subject: [PATCH] airoha: an7581: fix w1700k fan script 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 Link: https://github.com/openwrt/openwrt/pull/22391 Signed-off-by: Robert Marko --- target/linux/airoha/an7581/base-files/etc/init.d/airoha_fan | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) mode change 100644 => 100755 target/linux/airoha/an7581/base-files/etc/init.d/airoha_fan diff --git a/target/linux/airoha/an7581/base-files/etc/init.d/airoha_fan b/target/linux/airoha/an7581/base-files/etc/init.d/airoha_fan old mode 100644 new mode 100755 index 0705402ea7..ab9eeca83a --- a/target/linux/airoha/an7581/base-files/etc/init.d/airoha_fan +++ b/target/linux/airoha/an7581/base-files/etc/init.d/airoha_fan @@ -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()