Signed-off-by: Alexey I. Froloff <raorn@altlinux.org>
SVN-Revision: 30581
[ -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"
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"