-#!/bin/sh
. /lib/functions/system.sh
. /lib/functions/uci-defaults.sh
devolo,dvl1750x|\
dlink,dap-1330-a1|\
dlink,dap-1365-a1|\
+ dlink,dap-2230-a1|\
+ dlink,dap-2660-a1|\
+ dlink,dap-2680-a1|\
+ dlink,dap-3320-a1|\
dlink,dir-505|\
- engenius,eap300-v2|\
+ engenius,eap1200h|\
+ engenius,eap600|\
engenius,ecb1200|\
engenius,ecb1750|\
- engenius,ecb350-v1|\
+ engenius,ecb600|\
enterasys,ws-ap3705i|\
glinet,gl-ar300m-lite|\
glinet,gl-usb150|\
netgear,ex7300|\
ocedo,koala|\
ocedo,raccoon|\
+ openmesh,mr600-v1|\
+ openmesh,mr600-v2|\
+ openmesh,mr900-v1|\
+ openmesh,mr900-v2|\
+ openmesh,mr1750-v1|\
+ openmesh,mr1750-v2|\
pcs,cap324|\
pisen,ts-d084|\
pisen,wmb001n|\
tplink,re450-v2|\
tplink,re450-v3|\
tplink,tl-wr902ac-v1|\
+ ubnt,bullet-ac|\
ubnt,bullet-m-ar7240|\
ubnt,bullet-m-ar7241|\
ubnt,bullet-m-xw|\
alfa-network,n5q|\
devolo,dvl1200e|\
devolo,dvl1750e|\
- ocedo,ursus)
+ engenius,enstationac-v1|\
+ engenius,ews511ap|\
+ ocedo,ursus|\
+ ubnt,unifi-ap-outdoor-plus)
ucidef_set_interface_lan "eth0 eth1"
;;
avm,fritz4020|\
ucidef_add_switch "switch0" \
"0@eth0" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1"
;;
+ buffalo,wzr-hp-g300nh-rb|\
+ buffalo,wzr-hp-g300nh-s|\
+ dlink,dir-825-b1)
+ ucidef_set_interface_wan "eth1"
+ ucidef_add_switch "switch0" \
+ "0:lan" "1:lan" "2:lan" "3:lan" "5@eth0"
+ ;;
buffalo,wzr-hp-g302h-a1a0)
ucidef_add_switch "switch0" \
"0@eth0" "1:lan:1" "3:lan:4" "4:lan:3" "5:lan:2" "2:wan"
comfast,cf-e120a-v3|\
comfast,cf-e314n-v2|\
compex,wpj531-16m|\
+ openmesh,a40|\
+ openmesh,a60|\
+ openmesh,om2p-v4|\
+ openmesh,om2p-hs-v4|\
plasmacloud,pa300|\
plasmacloud,pa300e|\
tplink,cpe210-v1|\
ubnt,routerstation)
ucidef_set_interfaces_lan_wan "eth1" "eth0"
;;
+ comfast,cf-e375ac)
+ ucidef_add_switch "switch0" \
+ "0@eth0" "1:wan" "2:lan"
+ ;;
comfast,cf-e560ac)
ucidef_set_interface_wan "eth1"
ucidef_add_switch "switch0" \
"0@eth0" "2:wan" "3:lan" "4:lan"
;;
dlink,dap-2695-a1)
- ucidef_add_switch "switch0" "0@eth0" "2:lan" "3:wan" "6@eth1"
+ ucidef_add_switch "switch0" \
+ "0@eth0" "2:lan" "3:wan" "6@eth1"
;;
- dlink,dch-g020-a1)
+ dlink,dap-3662-a1)
ucidef_add_switch "switch0" \
- "0@eth0" "1:lan:2" "2:lan:1"
+ "0@eth0" "1:lan:2" "2:lan:1" "6@eth1"
;;
- dlink,dir-825-b1)
- ucidef_set_interface_wan "eth1"
+ dlink,dch-g020-a1)
ucidef_add_switch "switch0" \
- "0:lan" "1:lan" "2:lan" "3:lan" "5@eth0"
+ "0@eth0" "1:lan:2" "2:lan:1"
;;
dlink,dir-825-c1|\
dlink,dir-835-a1|\
dlink,dir-842-c3|\
dlink,dir-859-a1|\
engenius,epg5000|\
+ sitecom,wlr-7100|\
tplink,archer-c2-v3|\
tplink,tl-wr1043nd-v4|\
tplink,tl-wr1043n-v5)
ucidef_add_switch "switch0" \
"0@eth0" "1:wan" "2:lan:3" "3:lan:2"
;;
- engenius,enh202-v1)
- ucidef_set_interface_wan "eth0"
+ engenius,eap300-v2)
ucidef_add_switch "switch0" \
- "0@eth1" "4:lan:1"
+ "0@eth0" "1:lan"
;;
engenius,ens202ext-v1)
- ucidef_set_interface_wan "eth1"
+ ucidef_set_interface_lan "eth1"
ucidef_add_switch "switch0" \
"0@eth0" "1:lan"
;;
- engenius,ews511ap)
- ucidef_set_interface_lan "eth0 eth1" "dhcp"
- ;;
etactica,eg200)
ucidef_set_interface_lan "eth0" "dhcp"
;;
iodata,wn-ac1600dgr2|\
iodata,wn-ag300dgr|\
pcs,cr5000|\
- sitecom,wlr-7100|\
wd,mynet-n750)
ucidef_add_switch "switch0" \
"0@eth0" "1:lan" "2:lan" "3:lan" "4:lan" "5:wan"
ucidef_add_switch "switch0" \
"0@eth0" "5:wan" "6@eth1" "4:lan"
;;
+ meraki,mr12)
+ ucidef_set_interface_lan "eth0"
+ ucidef_add_switch "switch0" \
+ "0@eth1" "1:lan"
+ ;;
mercury,mw4530r-v1|\
tplink,archer-a7-v5|\
tplink,archer-c6-v2|\
ucidef_add_switch "switch0" \
"0@eth0" "1:lan" "2:lan"
;;
- zbtlink,zbt-wd323|\
- xiaomi,mi-router-4q)
+ xiaomi,mi-router-4q|\
+ zbtlink,zbt-wd323)
ucidef_set_interface_wan "eth1"
ucidef_add_switch "switch0" \
"0@eth0" "3:lan:1" "4:lan:2"
lan_mac=$(fritz_tffs -n maca -i $(find_mtd_part "tffs (1)"))
wan_mac=$(fritz_tffs -n macb -i $(find_mtd_part "tffs (1)"))
;;
+ comfast,cf-e375ac)
+ wan_mac=$(macaddr_add $(mtd_get_mac_binary art 0x0) 1)
+ ;;
compex,wpj344-16m|\
compex,wpj563)
wan_mac=$(mtd_get_mac_binary u-boot 0x2e018)
lan_mac=$(mtd_get_mac_text "mp" 0x1)
label_mac=$lan_mac
;;
- dlink,dap-2660-a1)
+ dlink,dap-2230-a1|\
+ dlink,dap-2660-a1|\
+ dlink,dap-2680-a1|\
+ dlink,dap-3320-a1)
lan_mac=$(mtd_get_mac_ascii bdcfg "lanmac")
label_mac=$lan_mac
;;
- dlink,dap-2695-a1)
+ dlink,dap-2695-a1|\
+ dlink,dap-3662-a1)
label_mac=$(mtd_get_mac_ascii bdcfg "wlanmac")
;;
dlink,dir-825-b1)
;;
dlink,dir-842-c1|\
dlink,dir-842-c2|\
- dlink,dir-842-c3|\
- nec,wg1200cr)
+ dlink,dir-842-c3)
lan_mac=$(mtd_get_mac_ascii devdata "lanmac")
wan_mac=$(mtd_get_mac_ascii devdata "wanmac")
label_mac=$lan_mac
lan_mac=$(mtd_get_mac_ascii u-boot-env ethaddr)
label_mac=$lan_mac
;;
- engenius,enh202-v1|\
- ubnt,airrouter|\
- ubnt,bullet-m-ar7240|\
- ubnt,bullet-m-ar7241|\
- ubnt,nanobridge-m|\
- ubnt,nanostation-loco-m|\
- ubnt,nanostation-m|\
- ubnt,picostation-m|\
- ubnt,powerbridge-m|\
- ubnt,rocket-m|\
- ubnt,unifi)
- label_mac=$(cat /sys/class/ieee80211/phy0/macaddress)
- ;;
engenius,epg5000)
lan_mac=$(mtd_get_mac_ascii u-boot-env ethaddr)
wan_mac=$(mtd_get_mac_ascii u-boot-env wanaddr)
base_mac=$(mtd_get_mac_binary u-boot 0x1fc00)
wan_mac=$(macaddr_add "$base_mac" 1)
;;
+ nec,wg1200cr)
+ lan_mac=$(mtd_get_mac_ascii devdata "lanmac")
+ wan_mac=$(mtd_get_mac_ascii devdata "wanmac")
+ label_mac=$wan_mac
+ ;;
nec,wg800hp)
lan_mac=$(mtd_get_mac_text board_data 0x280)
wan_mac=$(mtd_get_mac_text board_data 0x480)
wan_mac=$(mtd_get_mac_text mac 0x18)
label_mac=$wan_mac
;;
+ ubnt,airrouter|\
+ ubnt,bullet-m-ar7240|\
+ ubnt,bullet-m-ar7241|\
+ ubnt,nanobridge-m|\
+ ubnt,nanostation-loco-m|\
+ ubnt,nanostation-m|\
+ ubnt,picostation-m|\
+ ubnt,powerbridge-m|\
+ ubnt,rocket-m|\
+ ubnt,unifi)
+ label_mac=$(cat /sys/class/ieee80211/phy0/macaddress)
+ ;;
ubnt,litebeam-ac-gen2|\
ubnt,nanobeam-ac-gen2|\
ubnt,powerbeam-5ac-500|\