fi
local wanports=""
local lanports=""
- swconfig dev rt305x set reset 1
for port in 5 4 3 2 1 0; do
if [ `swconfig dev rt305x port $port get disable` = "1" ]; then
continue
w150m | \
all0256n | \
all5002 | \
+ all5003 | \
+ awm002-evb | \
broadway | \
wnce2001)
ucidef_add_switch "switch0" "1" "0"
ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
;;
+ asl26555)
+ ucidef_set_interface_lan "eth0.1"
+ ucidef_add_switch "switch0" "1" "1"
+ ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 6t"
+ ;;
+
dir-645)
ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
ucidef_add_switch "switch0" "1" "1"
f5d8235-v1 | \
f5d8235-v2 | \
+ hg255d | \
ur-326n4g)
ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
ucidef_add_switch "switch0" "1" "1"
ucidef_add_switch_vlan "switch0" "2" "0t 5"
;;
- freestation5 | \
wcr-150gn)
ucidef_set_interfaces_lan_wan "eth0.2" "eth0.1"
;;
bc2 | \
br6425 | \
broadway | \
+ dir-620-d1 | \
f5d8235-v1 | \
+ mpr-a1 | \
+ mpr-a2 | \
mzk-w300nh2 | \
nw718 | \
psr-680w | \
wan_mac=$(macaddr_add "$lan_mac" 1)
;;
+ asl26555)
+ lan_mac=$(mtd_get_mac_binary devdata 16388)
+ ;;
+
w306r-v20)
lan_mac=$(mtd_get_mac_binary factory 4)
wan_mac=$(macaddr_add "$lan_mac" 5)
;;
rt-n13u | \
+ hg255d | \
fonera20n)
lan_mac=$(mtd_get_mac_binary factory 40)
wan_mac=$(macaddr_add "$lan_mac" 1)
all0239-3g | \
carambola | \
+ freestation5 | \
w502u | \
wnce2001)
lan_mac=$(mtd_get_mac_binary factory 40)