3 # Copyright (C) 2013 OpenWrt.org
8 ramips_set_preinit_iface
() {
9 RT3X5X
=`cat /proc/cpuinfo | egrep "(RT3.5|RT5350|MT7628)"`
10 if [ -n "${RT3X5X}" ]; then
11 swconfig dev rt305x
set reset 1
14 if echo $RT3X5X |
egrep -q "(RT5350|MT7628)"; then
15 # This is a dirty hack to get by while the switch
16 # problem is investigated. When VLAN is disabled, ICMP
17 # pings work as expected, but TCP connections time
18 # out, so telnetting in failsafe is impossible. The
19 # likely reason is TCP checksumming hardware getting
21 # https://www.mail-archive.com/openwrt-devel@lists.openwrt.org/msg19870.html
22 swconfig dev rt305x
set enable_vlan
1
23 swconfig dev rt305x vlan
1 set ports
"0 6"
24 swconfig dev rt305x port
6 set untag
0
25 swconfig dev rt305x
set apply
1
34 boot_hook_add preinit_main ramips_set_preinit_iface