summaryrefslogtreecommitdiffstats
path: root/package/6to4/files
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-03-19 21:09:57 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-03-19 21:09:57 +0000
commit369bc0e57da6a629d8a23a003d30a79c32a92573 (patch)
tree7fe1eb05d5c04855a0aa0554247417a5f0334761 /package/6to4/files
parent768650413e9dc957a03f0577acdb46146ebe647a (diff)
6to4: fix interface error handling
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31034 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/6to4/files')
-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 0b7bf31bb..682538564 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
}