summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-03-19 21:09:57 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-03-19 21:09:57 +0000
commitf33c1deb657286804d2eb50f148db4e5063f2595 (patch)
tree3f4807ef2bdcf1f292b9392e8db89a9522e9f562
parent6df99730c45d6f127b2f8b7ca2a6a46da374b52d (diff)
downloadmaster-31e0f0ae-f33c1deb657286804d2eb50f148db4e5063f2595.tar.gz
master-31e0f0ae-f33c1deb657286804d2eb50f148db4e5063f2595.tar.bz2
master-31e0f0ae-f33c1deb657286804d2eb50f148db4e5063f2595.zip
6to4: fix interface error handling
SVN-Revision: 31034
-rwxr-xr-xpackage/6to4/files/6to4.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/package/6to4/files/6to4.sh b/package/6to4/files/6to4.sh
index 0b7bf31bbb..6825385648 100755
--- a/package/6to4/files/6to4.sh
+++ b/package/6to4/files/6to4.sh
@@ -126,14 +126,14 @@ proto_6to4_setup() {
local wanif=$(find_6to4_wanif)
[ -z "$wanif" ] && {
- tun_error "NO_WAN_LINK"
+ tun_error "$cfg" "NO_WAN_LINK"
return
}
. /lib/network/config.sh
local wancfg="$(find_config "$wanif")"
[ -z "$wancfg" ] && {
- tun_error "NO_WAN_LINK"
+ tun_error "$cfg" "NO_WAN_LINK"
return
}
@@ -144,12 +144,12 @@ proto_6to4_setup() {
}
[ -z "$local4" ] && {
- tun_error "NO_WAN_LINK"
+ tun_error "$cfg" "NO_WAN_LINK"
return
}
test_6to4_rfc1918 "$local4" && {
- tun_error "INVALID_LOCAL_ADDRESS"
+ tun_error "$cfg" "INVALID_LOCAL_ADDRESS"
return
}