mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 07:22:33 +00:00
20 lines
309 B
Plaintext
20 lines
309 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
. /lib/functions/uci-defaults.sh
|
||
|
|
||
|
board=$(board_name)
|
||
|
boardname="${board##*,}"
|
||
|
|
||
|
board_config_update
|
||
|
|
||
|
case $board in
|
||
|
friendlyarm,nanopi-r1)
|
||
|
ucidef_set_led_netdev "wan" "WAN" "nanopi:green:wan" "eth0"
|
||
|
ucidef_set_led_netdev "lan" "LAN" "nanopi:green:lan" "eth1"
|
||
|
;;
|
||
|
esac
|
||
|
|
||
|
board_config_flush
|
||
|
|
||
|
exit 0
|