[patch-team] update wing to 20110329 - Signed off by Roberto Riggio <roberto.riggio@create-net.org>
git-svn-id: svn://svn.openwrt.org/openwrt/packages@29373 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@ -1,13 +1,6 @@
|
||||
uci delete network.mesh
|
||||
uci set network.mesh=interface
|
||||
uci set network.mesh.proto=wing
|
||||
uci set network.mesh.rc=minstrel
|
||||
uci set network.mesh.ls=fcfs
|
||||
uci set network.mesh.metric=wcett
|
||||
uci set network.mesh.prefix=6
|
||||
uci set network.mesh.period=10000
|
||||
uci set network.mesh.tau=100000
|
||||
uci set network.mesh.debug=false
|
||||
|
||||
uci add firewall zone
|
||||
uci set firewall.@zone[-1].name="mesh"
|
||||
|
@ -107,7 +107,9 @@ setup_interface_wing() {
|
||||
ps | grep /usr/bin/click | grep -v grep | awk '{print $1}' > /var/run/$iface.pid
|
||||
|
||||
ifconfig "$iface" "$ipaddr" netmask "$netmask"
|
||||
route add default dev "$iface"
|
||||
route -n | grep -q '^0.0.0.0' || {
|
||||
route add default dev "$iface"
|
||||
}
|
||||
|
||||
uci_set_state network $config ifname "$iface"
|
||||
uci_set_state network $config ipaddr "$ipaddr"
|
||||
|
Reference in New Issue
Block a user