This is partly a backport of r37286, this closes #13716
git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@37309
3c298f89-4303-0410-b956-
a3cf2f4a3e73
failsafe_ip() {
[ -d /proc/switch/eth0 ] && [ "$ifname" = "eth0" ] && {
- ifconfig eth0 0.0.0.0 down
echo "0 1 2 3 4 ${cpu_port:-5u*}" > /proc/switch/eth0/vlan/0/ports
}
echo "$port ${cpu_port:-5u*}" > /proc/switch/eth0/vlan/0/ports
port_net_echo $1
}; done
-
- echo "0 1 2 3 4 ${cpu_port:-5u*}" > /proc/switch/eth0/vlan/0/ports
-
+
+ echo 1 > /proc/switch/eth0/reset
+
} || port_net_echo $1
}