lanports="$port:lan $lanports"
fi
done
- ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
- ucidef_add_switch "rt305x" $lanports $wanports "6@eth0"
+ ucidef_add_switch "rt305x" $lanports $wanports "6t@eth0"
}
ramips_setup_interfaces()
ucidef_add_switch_attr "switch0" "enable" "false"
ucidef_set_interface_lan "eth0"
;;
- 3g-6200nl|\
mlw221|\
mr-102n)
ucidef_set_interface_lan "eth0.2"
oy-0001|\
pbr-m1|\
psg1208|\
+ psg1218|\
sap-g3200u3|\
sk-wb8|\
+ vr500|\
wf-2881|\
whr-300hp2|\
whr-600d|\
mzk-ex300np|\
mzk-ex750np|\
na930|\
+ pbr-d1|\
wli-tx4-ag300n|\
wmr-300|\
wrh-300cr)
ucidef_add_switch "switch0" \
"0:lan" "4:lan" "6t@eth0"
;;
+ newifi-d1)
+ ucidef_set_interface_lan_wan "eth0.1" "eth0.2"
+ ucidef_add_switch "switch0" \
+ "0:lan" "1:lan" "2:lan" "3:lan" "5:wan" "6t@eth0" "7t@eth0"
+ ucidef_add_switch "switch1" \
+ "4:lan" "6t@eth0" "7t@eth0"
+ ;;
rt-n56u)
ucidef_add_switch "switch0" \
"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "8@eth0"
lan_mac=$(cat /sys/class/net/eth0/address)
lan_mac=$(macaddr_add "$lan_mac" -2)
;;
+ newifi-d1)
+ lan_mac=$(cat /sys/class/net/eth0/address)
+ lan_mac=$(macaddr_add "$lan_mac" 2)
+ ;;
oy-0001)
lan_mac=$(mtd_get_mac_binary factory 40)
wan_mac=$(mtd_get_mac_binary factory 46)
lan_mac=$(mtd_get_mac_ascii u-boot-env LAN_MAC_ADDR)
wan_mac=$(mtd_get_mac_ascii u-boot-env WAN_MAC_ADDR)
;;
+ vr500)
+ lan_mac=$(mtd_get_mac_binary factory 57344)
+ wan_mac=$(mtd_get_mac_binary factory 57350)
+ ;;
w306r-v20)
lan_mac=$(cat /sys/class/net/eth0/address)
wan_mac=$(macaddr_add "$lan_mac" 5)