diff options
author | Felix Fietkau <nbd@nbd.name> | 2016-06-24 16:22:34 +0200 |
---|---|---|
committer | Zoltan HERPAI <wigyori@uid0.hu> | 2016-06-24 16:22:34 +0200 |
commit | c6a3553eb4df7682e84f042857b8de1bb50eefae (patch) | |
tree | e1063f95b0b729857296ca5ac30f9f3617b1f76f /target/linux/lantiq/base-files | |
parent | 13259c833e32b16a8766445cef52dddf41a4779a (diff) | |
download | master-187ad058-c6a3553eb4df7682e84f042857b8de1bb50eefae.tar.gz master-187ad058-c6a3553eb4df7682e84f042857b8de1bb50eefae.tar.bz2 master-187ad058-c6a3553eb4df7682e84f042857b8de1bb50eefae.zip |
lantiq: add Buffalo WBMR-300HPD support
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/lantiq/base-files')
-rwxr-xr-x | target/linux/lantiq/base-files/etc/board.d/01_leds | 7 | ||||
-rwxr-xr-x | target/linux/lantiq/base-files/etc/board.d/02_network | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/target/linux/lantiq/base-files/etc/board.d/01_leds b/target/linux/lantiq/base-files/etc/board.d/01_leds index 39b693ac19..c365468030 100755 --- a/target/linux/lantiq/base-files/etc/board.d/01_leds +++ b/target/linux/lantiq/base-files/etc/board.d/01_leds @@ -42,6 +42,13 @@ P2812HNUF*) ARV7519RW22) ucidef_set_led_netdev "lan" "lan" "arv7519rw22:green:lan" "eth0.1" ;; +WBMR300) + ucidef_set_led_switch "lan1" "LAN1" "wbmr300:green:lan1" "switch0" "0x08" + ucidef_set_led_switch "lan2" "LAN2" "wbmr300:green:lan2" "switch0" "0x04" + ucidef_set_led_switch "wan" "WAN" "wbmr300:green:wan" "switch0" "0x10" + ucidef_set_led_switch "lan3" "LAN3" "wbmr300:green:lan3" "switch0" "0x20" + ucidef_set_led_default "router" "router" "wbmr300:green:router" "1" + ;; *) ;; esac diff --git a/target/linux/lantiq/base-files/etc/board.d/02_network b/target/linux/lantiq/base-files/etc/board.d/02_network index a3dc80c54b..89ffc79b0f 100755 --- a/target/linux/lantiq/base-files/etc/board.d/02_network +++ b/target/linux/lantiq/base-files/etc/board.d/02_network @@ -146,6 +146,13 @@ VGV7510KW22) "2:lan:1" "3:lan:2" "4:lan:3" "5:lan:4" "6t@eth0" ;; +WBMR300) + lan_mac=$(mtd_get_mac_ascii ubootconfig ethaddr) + wan_mac="$lan_mac" + ucidef_add_switch "switch0" \ + "2:lan:1" "3:lan:2" "5:lan:3" "4:wan:1" "6t@eth0" + ;; + esac if [ -n "$(ls /lib/modules/`uname -r`/ltq_atm*)" ]; then |