X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=blobdiff_plain;f=target%2Flinux%2Framips%2Fbase-files%2Fetc%2Fboard.d%2F02_network;h=6ad64e6727791377ff35c712a1836b41558a378d;hp=cefc4f41fe8b358d7020b55e10fe026edc3afb0c;hb=9996480b0ee80456af0b9fc3d44580393b09c84b;hpb=a7cbf59e0e04a24b91a112e9b2e1a72ed5b4c1f6 diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network index cefc4f41fe..6ad64e6727 100755 --- a/target/linux/ramips/base-files/etc/board.d/02_network +++ b/target/linux/ramips/base-files/etc/board.d/02_network @@ -1,7 +1,6 @@ #!/bin/sh . /lib/functions.sh -. /lib/ramips.sh . /lib/functions/uci-defaults.sh . /lib/functions/system.sh @@ -84,6 +83,7 @@ ramips_setup_interfaces() hc5661a|\ hc5962|\ hlk-rm04|\ + k2p|\ kn|\ kn_rc|\ mac1200rv2|\ @@ -102,6 +102,7 @@ ramips_setup_interfaces() r6220|\ sap-g3200u3|\ sk-wb8|\ + u7621-06-256M-16M|\ vr500|\ wf-2881|\ witi|\ @@ -113,6 +114,7 @@ ramips_setup_interfaces() youku-yk1|\ zbt-ape522ii|\ zbt-we1326|\ + zbt-we3526|\ zbt-we826-16M|\ zbt-we826-32M|\ zbt-wg2626|\ @@ -122,6 +124,10 @@ ramips_setup_interfaces() ucidef_add_switch "switch0" \ "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6@eth0" ;; + mir3g) + ucidef_add_switch "switch0" \ + "2:lan:2" "3:lan:1" "1:wan" "6t@eth0" + ;; psg1218b) ucidef_add_switch "switch0" \ "0:lan:3" "1:lan:2" "2:lan:1" "3:wan" "6@eth0" @@ -135,6 +141,10 @@ ramips_setup_interfaces() ;; ar670w|\ ar725w|\ + rt-ac51u) + ucidef_add_switch "switch0" \ + "0:wan" "1:lan" "2:lan" "3:lan" "4:lan" "6t@eth0" + ;; rt-n15|\ wl-351) ucidef_add_switch "switch0" \ @@ -149,11 +159,8 @@ ramips_setup_interfaces() atp-52b|\ awm002-evb-4M|\ awm002-evb-8M|\ - awm003-evb|\ c20i|\ - c50|\ dir-645|\ - dir-860l-b1|\ f5d8235-v2|\ gl-mt300a|\ gl-mt300n|\ @@ -165,7 +172,12 @@ ramips_setup_interfaces() mzk-wdpr|\ rb750gr3|\ rt-n14u|\ + tl-wr840n-v4|\ + tl-wr840n-v5|\ + tl-wr841n-v13|\ + u7628-01-128M-16M|\ ubnt-erx|\ + ubnt-erx-sfp|\ ur-326n4g|\ wrtnode|\ wrtnode2p | \ @@ -176,6 +188,23 @@ ramips_setup_interfaces() ucidef_add_switch "switch0" \ "1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "6@eth0" ;; + c20|\ + c50) + ucidef_add_switch "switch0" \ + "1:lan:3" "2:lan:4" "3:lan:1" "4:lan:2" "0:wan" "6@eth0" + ;; + dir-860l-b1) + ucidef_add_switch "switch0" \ + "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "0:wan" "6@eth0" + ;; + gb-pc1) + ucidef_add_switch "switch0" \ + "0:lan" "4:lan" "6@eth0" + ;; + gl-mt300n-v2) + ucidef_add_switch "switch0" \ + "1:lan" "0:wan" "6@eth0" + ;; awapn2403) ucidef_add_switch "switch0" \ "0:lan" "1:wan" "6@eth0" @@ -193,6 +222,7 @@ ramips_setup_interfaces() ucidef_add_switch "switch0" \ "1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "9@eth0" ;; + c108|\ cf-wr800n) ucidef_add_switch "switch0" \ "4:lan" "6t@eth0" @@ -211,7 +241,9 @@ ramips_setup_interfaces() mzk-ex750np|\ na930|\ pbr-d1|\ + u25awf-h1|\ wli-tx4-ag300n|\ + wmdr-143n|\ wmr-300|\ wn3000rpv3|\ wrh-300cr) @@ -259,6 +291,10 @@ ramips_setup_interfaces() ucidef_add_switch "switch0" \ "1:lan:2" "2:lan:1" "4:wan" "6@eth0" ;; + re350-v1) + ucidef_add_switch "switch0" \ + "0:lan" "6@eth0" + ;; re6500) ucidef_add_switch "switch0" \ "0:lan:1" "1:lan:2" "2:lan:3" "3:lan:4" "6@eth0" @@ -267,13 +303,18 @@ ramips_setup_interfaces() ucidef_add_switch "switch0" \ "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "8@eth0" ;; + tew-638apb-v2) + ucidef_add_switch "switch0" \ + "4:lan" "6@eth0" + ;; tew-691gr|\ tew-692gr|\ wlr-6000) ucidef_add_switch "switch0" \ "1:lan" "2:lan" "3:lan" "4:lan" "5:wan" "0@eth0" ;; - vocore2) + vocore2|\ + vocore2lite) ucidef_add_switch "switch0" \ "0:lan" "2:lan" "6t@eth0" ;; @@ -288,7 +329,8 @@ ramips_setup_interfaces() ucidef_add_switch "switch0" \ "3:lan" "4:wan" "6@eth0" ;; - wcr-150gn) + wcr-150gn|\ + we1026-5g-16m) ucidef_add_switch "switch0" \ "0:lan" "6t@eth0" ;; @@ -319,7 +361,8 @@ ramips_setup_macs() case $board in a5-v11|\ - ht-tm02) + ht-tm02|\ + wmdr-143n) lan_mac=$(cat /sys/class/net/eth0/address) ;; all0239-3g|\ @@ -366,6 +409,9 @@ ramips_setup_macs() e1700) wan_mac=$(mtd_get_mac_ascii config WAN_MAC_ADDR) ;; + gl-mt300n-v2) + wan_mac=$(mtd_get_mac_binary factory 4) + ;; hc5*61|\ hc5661a|\ hc5962) @@ -387,6 +433,9 @@ ramips_setup_macs() lan_mac=$(mtd_get_mac_binary factory_info 13) wan_mac=$(macaddr_add "$lan_mac" 1) ;; + mir3g) + lan_mac=$(mtd_get_mac_binary Factory 0xe006) + ;; miwifi-mini) wan_mac=$(cat /sys/class/net/eth0/address) lan_mac=$(macaddr_setbit_la "$wan_mac") @@ -476,7 +525,7 @@ ramips_setup_macs() } board_config_update -board=$(ramips_board_name) +board=$(board_name) ramips_setup_interfaces $board ramips_setup_macs $board board_config_flush