projects
/
openwrt
/
svn-archive
/
archive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd4e376
)
packages: ipv6/tayga: add more checks
author
Gabor Juhos
<
[email protected]
>
Thu, 16 Feb 2012 11:58:31 +0000
(11:58 +0000)
committer
Gabor Juhos
<
[email protected]
>
Thu, 16 Feb 2012 11:58:31 +0000
(11:58 +0000)
Signed-off-by: Alexey I. Froloff <
[email protected]
>
SVN-Revision: 30581
ipv6/tayga/files/tayga.sh
patch
|
blob
|
history
diff --git
a/ipv6/tayga/files/tayga.sh
b/ipv6/tayga/files/tayga.sh
index 9f515c619426cbc7087759d6ef31dedc682cd7d6..36c33dee5087363fcf714e4bd78d26a50f977f7d 100644
(file)
--- a/
ipv6/tayga/files/tayga.sh
+++ b/
ipv6/tayga/files/tayga.sh
@@
-81,7
+81,7
@@
setup_interface_tayga() {
[ -n "$wanip4" ] && [ -n "$wanip6" ] || {
echo "Cannot determine local IPv4 and IPv6 addressed for tayga NAT64 $cfg - skipping"
- return
+ return
1
}
local tmpconf="/var/etc/tayga-$cfg.conf"
@@
-107,7
+107,9
@@
setup_interface_tayga() {
uci_set_state network "$cfg" ifname $link
uci_set_state network "$cfg" auto 0
- tayga $args --mktun
+ # here we create TUN device and check configuration
+ tayga $args --mktun || return 1
+
ip link set "$link" up
ip addr add "$wanip4" dev "$link"