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 "power" "power" "soc:blue:power" "1"
34 ucidef_set_led_default "power" "power" "soc:blue:power" "1"
37 ucidef_set_led_default "power" "power" "soc:blue:power" "1"
38 ucidef_set_led_default "dimmed" "dimmed" "dimmed" "0"
41 ucidef_set_led_default "power" "power" "power" "1"
42 ucidef_set_led_default "power2" "power2" "power2" "0"
43 ucidef_set_led_wlan "wifi" "wifi" "wifi" "phy0radio"
46 ucidef_set_led_default "power" "power" "power" "0"
47 ucidef_set_led_default "power2" "power2" "power2" "1"
48 ucidef_set_led_wlan "wifi" "wifi" "wireless_yellow" "phy0radio"
51 ucidef_set_led_default "power" "power" "power" "0"
52 ucidef_set_led_default "power2" "power2" "power2" "1"
53 ucidef_set_led_wlan "wifi" "wifi" "wireless_green" "phy0radio"
56 ucidef_set_led_default "power" "power" "power" "1"
57 ucidef_set_led_netdev "lan" "lan" "lan" "eth0.1"
60 ucidef_set_led_default "power" "power" "soc:green:power" "1"
61 ucidef_set_led_default "power2" "power2" "soc:red:power" "0"