[uboot-kirkwood] Fixed support for Iomega
[openwrt.git] / package / 6in4 / files / 6in4.sh
index bea2e82..2af1f74 100755 (executable)
@@ -2,7 +2,7 @@
 # Copyright (c) 2010 OpenWrt.org
 
 find_6in4_wanif() {
-       local if=$(ip -4 r l e 0/0); if="${if#default* dev }"; if="${if%% *}"
+       local if=$(ip -4 r l e 0.0.0.0/0); if="${if#default* dev }"; if="${if%% *}"
        [ -n "$if" ] && grep -qs "^ *$if:" /proc/net/dev && echo "$if"
 }
 
@@ -28,7 +28,7 @@ setup_interface_6in4() {
        local cfg="$2"
        local link="6in4-$cfg"
 
-       local local4=$(uci_get network "$cfg" local4)
+       local local4=$(uci_get network "$cfg" ipaddr)
 
        local remote4
        config_get remote4 "$cfg" peeraddr
This page took 0.01974 seconds and 4 git commands to generate.