diff options
Diffstat (limited to 'target/linux/lantiq/base-files/etc/uci-defaults')
-rw-r--r-- | target/linux/lantiq/base-files/etc/uci-defaults/01_leds | 7 | ||||
-rw-r--r-- | target/linux/lantiq/base-files/etc/uci-defaults/02_network | 4 |
2 files changed, 10 insertions, 1 deletions
diff --git a/target/linux/lantiq/base-files/etc/uci-defaults/01_leds b/target/linux/lantiq/base-files/etc/uci-defaults/01_leds index 10ba2a13b7..3502eb2b27 100644 --- a/target/linux/lantiq/base-files/etc/uci-defaults/01_leds +++ b/target/linux/lantiq/base-files/etc/uci-defaults/01_leds @@ -37,6 +37,13 @@ VGV7519) ucidef_set_led_netdev "internet_yellow" "internet_yellow" "internet_yellow" "nas0" ucidef_set_led_netdev "broadband_yellow" "broadband_yellow" "broadband_yellow" "pppoe-wan" ;; +P2812HNUF*) + ucidef_set_led_default "power" "power" "power" "0" + ucidef_set_led_default "power2" "power2" "power2" "1" + ucidef_set_led_wlan "wireless_green" "wireless_green" "wireless_green" "phy0radio" + ucidef_set_led_netdev "dsl" "dsl" "dsl" "nas0" + ucidef_set_led_netdev "internet_green" "internet_green" "internet_green" "pppoe-wan" + ;; *) ;; esac diff --git a/target/linux/lantiq/base-files/etc/uci-defaults/02_network b/target/linux/lantiq/base-files/etc/uci-defaults/02_network index 1df83a6a9d..f9cac7c440 100644 --- a/target/linux/lantiq/base-files/etc/uci-defaults/02_network +++ b/target/linux/lantiq/base-files/etc/uci-defaults/02_network @@ -145,7 +145,9 @@ P2601HNFX) ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 5t" ;; -P2812HNUFX) +P2812HNUF*) + lan_mac=$(mtd_get_mac_ascii uboot-env ethaddr) + wan_mac=$(macaddr_add "$lan_mac" 1) ucidef_set_interface_lan 'eth0.1' ucidef_add_switch "switch0" "1" "1" ucidef_add_switch_vlan "switch0" "1" "0 1 2 4 5 6t" |