f0da262a094e3607d32516602361b28527597d9b
[openwrt/openwrt.git] / target / linux / rockchip / armv8 / base-files / etc / board.d / 01_leds
1
2 . /lib/functions/leds.sh
3 . /lib/functions/uci-defaults.sh
4
5 board=$(board_name)
6 boardname="${board##*,}"
7
8 board_config_update
9
10 case $board in
11 friendlyarm,nanopi-r2c|\
12 friendlyarm,nanopi-r2s|\
13 friendlyarm,nanopi-r4s|\
14 xunlong,orangepi-r1-plus)
15 ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth0"
16 ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth1"
17 ;;
18 esac
19
20 board_config_flush
21
22 exit 0