mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 01:11:14 +00:00
b25c7548e0
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>
20 lines
313 B
Plaintext
20 lines
313 B
Plaintext
|
|
. /lib/functions/uci-defaults.sh
|
|
|
|
board=$(board_name)
|
|
boardname="${board##*,}"
|
|
|
|
board_config_update
|
|
|
|
case $board in
|
|
friendlyarm,nanopi-r1|\
|
|
friendlyarm,nanopi-r1s-h5)
|
|
ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth0"
|
|
ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth1"
|
|
;;
|
|
esac
|
|
|
|
board_config_flush
|
|
|
|
exit 0
|