3 # Copyright (C) 2011-2015 OpenWrt.org
7 . /lib/functions/uci-defaults.sh
8 . /lib/functions/lantiq.sh
12 [ -n "$(lantiq_is_dt_led_chosen wifi)" ] && ucidef_set_led_wlan "wifi" "wifi" "$(lantiq_get_dt_led_chosen wifi)" "phy0tpt"
13 [ -n "$(lantiq_is_dt_led_chosen usb)" ] && ucidef_set_led_usbdev "usb" "usb" "$(lantiq_get_dt_led_chosen usb)" "1-1"
14 [ -n "$(lantiq_is_dt_led_chosen usb2)" ] && ucidef_set_led_usbdev "usb2" "usb2" "$(lantiq_get_dt_led_chosen usb2)" "2-1"
16 [ -n "$(lantiq_is_dt_led_chosen internet)" ] && {
19 [ -n "$(lantiq_is_dt_led_chosen dsl)" ] && {
21 ucidef_set_led_default "dsl" "dsl" "$(lantiq_get_dt_led_chosen dsl)" "0"
24 ucidef_set_led_netdev "internet" "internet" "$(lantiq_get_dt_led_chosen internet)" "$interface"
27 board=$(lantiq_board_name)
31 ucidef_set_led_default "dimmed" "dimmed" "dimmed" "0"
34 ucidef_set_led_wlan "wifi" "wifi" "vgv7510kw22:green:wlan" "phy0radio"
37 ucidef_set_led_wlan "wifi" "wifi" "vgv7519:green:wireless" "phy0radio"
40 ucidef_set_led_wlan "wifi" "wifi" "p2812hnufx:green:wlan" "phy0radio"
43 ucidef_set_led_netdev "lan" "lan" "arv7519rw22:green:lan" "eth0.1"
46 ucidef_set_led_switch "lan1" "LAN1" "wbmr300:green:lan1" "switch0" "0x08"
47 ucidef_set_led_switch "lan2" "LAN2" "wbmr300:green:lan2" "switch0" "0x04"
48 ucidef_set_led_switch "wan" "WAN" "wbmr300:green:wan" "switch0" "0x10"
49 ucidef_set_led_switch "lan3" "LAN3" "wbmr300:green:lan3" "switch0" "0x20"
50 ucidef_set_led_default "router" "router" "wbmr300:green:router" "1"