[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:
dingo
2011-12-01 13:45:36 +00:00
parent 0fda4e9a14
commit e0e6ce7dd7
4 changed files with 12 additions and 31 deletions

View File

@ -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"