diff options
Diffstat (limited to 'target/linux/ath79/base-files/etc')
-rwxr-xr-x | target/linux/ath79/base-files/etc/board.d/02_network | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/target/linux/ath79/base-files/etc/board.d/02_network b/target/linux/ath79/base-files/etc/board.d/02_network index f471882213..b9d6c709e7 100755 --- a/target/linux/ath79/base-files/etc/board.d/02_network +++ b/target/linux/ath79/base-files/etc/board.d/02_network @@ -111,6 +111,10 @@ ath79_setup_interfaces() ucidef_add_switch "switch0" \ "0@eth0" "3:lan:1" "5:lan:2" "4:wan" ;; + rosinson,wr818) + ucidef_add_switch "switch0" \ + "0@eth0" "1:lan" "2:lan" "3:wan" + ;; tplink,archer-c7-v1|\ tplink,archer-c7-v2|\ tplink,tl-wdr4900-v2) @@ -230,6 +234,10 @@ ath79_setup_macs() lan_mac=$(k2t_get_mac "lan_mac") wan_mac=$(k2t_get_mac "wan_mac") ;; + rosinson,wr818) + wan_mac=$(mtd_get_mac_binary factory 0) + lan_mac=$(macaddr_setbit_la "$wan_mac") + ;; tplink,tl-wr1043nd-v4) base_mac=$(mtd_get_mac_binary product-info 8) wan_mac=$(macaddr_add "$base_mac" 1) |