aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorChukun Pan <amadeus@jmu.edu.cn>2023-10-15 23:18:27 +0800
committerHauke Mehrtens <hauke@hauke-m.de>2023-10-28 18:31:43 +0200
commitb25c7548e07ad8775f8511ba8276bf3ecb4409ba (patch)
treea158dec1cbd8f04f1e714fc3b1aa6e562fd393ef /target/linux
parent5eb8a21ba5fe5e87c03f0361d1db989189be9c6d (diff)
downloadupstream-b25c7548e07ad8775f8511ba8276bf3ecb4409ba.tar.gz
upstream-b25c7548e07ad8775f8511ba8276bf3ecb4409ba.tar.bz2
upstream-b25c7548e07ad8775f8511ba8276bf3ecb4409ba.zip
sunxi: fixes led for nanopi boards
Kernel 5.15 already supports the NanoPi R1 and NanoPi R1S H5, and they use new LED bindings that do not match the existing settings in 01_leds. Update led settings to fixes that. List the led node on NanoPi R1S H5: root@OpenWrt:~# ls /sys/class/leds/ green:lan green:wan red:status Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/sunxi/base-files/etc/board.d/01_leds4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/sunxi/base-files/etc/board.d/01_leds b/target/linux/sunxi/base-files/etc/board.d/01_leds
index 60783363dee..da94e403737 100644
--- a/target/linux/sunxi/base-files/etc/board.d/01_leds
+++ b/target/linux/sunxi/base-files/etc/board.d/01_leds
@@ -9,8 +9,8 @@ board_config_update
case $board in
friendlyarm,nanopi-r1|\
friendlyarm,nanopi-r1s-h5)
- ucidef_set_led_netdev "wan" "WAN" "nanopi:green:wan" "eth0"
- ucidef_set_led_netdev "lan" "LAN" "nanopi:green:lan" "eth1"
+ ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth0"
+ ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth1"
;;
esac