mirror of https://github.com/aredn/aredn.git
74 lines
2.5 KiB
Diff
74 lines
2.5 KiB
Diff
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
|
|
@@ -40,6 +40,7 @@ ath79_setup_interfaces()
|
|
ubnt,nanostation-ac-loco|\
|
|
ubnt,nanostation-loco-m|\
|
|
ubnt,picostation-m|\
|
|
+ ubnt,nanostation-m-xw|\
|
|
ubnt,rocket-m|\
|
|
ubnt,unifiac-lite|\
|
|
ubnt,unifiac-lr|\
|
|
@@ -47,7 +48,9 @@ ath79_setup_interfaces()
|
|
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|\
|
|
@@ -84,8 +87,9 @@ ath79_setup_interfaces()
|
|
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" \
|
|
@@ -96,7 +100,10 @@ ath79_setup_interfaces()
|
|
tplink,cpe220-v3|\
|
|
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|\
|
|
@@ -257,18 +264,21 @@ ath79_setup_interfaces()
|
|
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"
|
|
ucidef_add_switch "switch0" \
|
|
"0@eth0" "3:lan:1" "4:lan:2"
|
|
;;
|
|
+ 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"
|
|
+ ;;
|
|
*)
|
|
- 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
|
|
}
|