2020-01-22 18:37:27 -07:00
|
|
|
Index: openwrt/target/linux/ath79/base-files/etc/board.d/02_network
|
|
|
|
===================================================================
|
|
|
|
--- openwrt.orig/target/linux/ath79/base-files/etc/board.d/02_network
|
|
|
|
+++ openwrt/target/linux/ath79/base-files/etc/board.d/02_network
|
2020-02-25 22:15:15 -07:00
|
|
|
@@ -40,6 +40,7 @@ ath79_setup_interfaces()
|
2020-01-22 18:37:27 -07:00
|
|
|
ubnt,nanostation-ac-loco|\
|
2020-02-25 22:15:15 -07:00
|
|
|
ubnt,nanostation-loco-m|\
|
|
|
|
ubnt,picostation-m|\
|
2020-01-22 18:37:27 -07:00
|
|
|
+ ubnt,nanostation-m-xw|\
|
|
|
|
ubnt,rocket-m|\
|
|
|
|
ubnt,unifiac-lite|\
|
|
|
|
ubnt,unifiac-lr|\
|
2020-02-25 22:15:15 -07:00
|
|
|
@@ -47,7 +48,9 @@ ath79_setup_interfaces()
|
2020-01-22 18:37:27 -07:00
|
|
|
ubnt,unifi|\
|
|
|
|
wd,mynet-wifi-rangeextender|\
|
|
|
|
winchannel,wb2000)
|
|
|
|
- ucidef_set_interface_lan "eth0"
|
|
|
|
+ ucidef_set_interfaces_lan_wan "eth0" "eth0.1"
|
|
|
|
+ ucidef_set_interface "wifi" ifname "wlan0" protocol "static"
|
|
|
|
+ ucidef_set_interface "dtdlink" ifname "eth0.2" protocol "static"
|
|
|
|
;;
|
|
|
|
avm,fritz4020|\
|
|
|
|
pcs,cr3000|\
|
2020-02-25 22:15:15 -07:00
|
|
|
@@ -84,8 +87,9 @@ ath79_setup_interfaces()
|
2020-01-22 18:37:27 -07:00
|
|
|
tplink,tl-wr842n-v3|\
|
|
|
|
ubnt,airrouter)
|
|
|
|
ucidef_set_interface_wan "eth1"
|
|
|
|
+ ucidef_set_interface "wifi" "ifname" "wlan0" "protocol" "static"
|
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
- "0@eth0" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1"
|
|
|
|
+ "0@eth0" "4:lan:1" "3:lan:2" "2:lan:3" "1t:unused" "1t:dtdlink"
|
|
|
|
;;
|
|
|
|
buffalo,wzr-hp-g302h-a1a0)
|
|
|
|
ucidef_add_switch "switch0" \
|
2020-02-25 22:15:15 -07:00
|
|
|
@@ -96,7 +100,10 @@ ath79_setup_interfaces()
|
|
|
|
tplink,cpe220-v3|\
|
2020-01-22 18:37:27 -07:00
|
|
|
ubnt,nanostation-m|\
|
|
|
|
ubnt,routerstation)
|
|
|
|
- ucidef_set_interfaces_lan_wan "eth1" "eth0"
|
|
|
|
+ ucidef_set_interface_lan "eth0 eth1"
|
|
|
|
+ ucidef_set_interface_wan "eth0.1 eth1.1"
|
|
|
|
+ ucidef_set_interface "dtdlink" ifname "eth0.2 eth1.2" protocol "static"
|
|
|
|
+ ucidef_set_interface "wifi" ifname "wlan0" protocol "static"
|
|
|
|
;;
|
|
|
|
devolo,dvl1200e|\
|
|
|
|
devolo,dvl1750e|\
|
2020-02-25 22:15:15 -07:00
|
|
|
@@ -257,18 +264,21 @@ ath79_setup_interfaces()
|
2020-01-22 18:37:27 -07:00
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"0@eth1" "2:lan:3" "3:lan:2" "4:lan:1"
|
|
|
|
;;
|
|
|
|
- ubnt,nanostation-m-xw)
|
|
|
|
- ucidef_add_switch "switch0" \
|
|
|
|
- "0@eth0" "5:lan" "1:wan"
|
|
|
|
- ;;
|
|
|
|
zbtlink,zbt-wd323|\
|
|
|
|
xiaomi,mi-router-4q)
|
|
|
|
ucidef_set_interface_wan "eth1"
|
2020-02-22 20:54:58 -07:00
|
|
|
ucidef_add_switch "switch0" \
|
2020-01-22 18:37:27 -07:00
|
|
|
"0@eth0" "3:lan:1" "4:lan:2"
|
|
|
|
;;
|
2020-02-22 20:54:58 -07:00
|
|
|
+ glinet,gl-ar150)
|
|
|
|
+ ucidef_set_interface "wifi" ifname "wlan0" protocol "static"
|
|
|
|
+ ucidef_set_interfaces_lan_wan "eth0" "eth1"
|
|
|
|
+ ucidef_set_interface "dtdlink" ifname "eth0.2" protocol "static"
|
|
|
|
+ ;;
|
2020-01-22 18:37:27 -07:00
|
|
|
*)
|
|
|
|
- ucidef_set_interfaces_lan_wan "eth0" "eth1"
|
|
|
|
+ ucidef_set_interface "wifi" ifname "wlan0" protocol "static"
|
|
|
|
+ ucidef_set_interfaces_lan_wan "eth0" "eth0.1"
|
|
|
|
+ ucidef_set_interface "dtdlink" ifname "eth0.2" protocol "static"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|