[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:
@ -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