From: Steven Barth Date: Tue, 9 Jun 2015 21:18:55 +0000 (+0000) Subject: map: add sleep work-around for lw4o6 race-condition X-Git-Tag: reboot~2816 X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=e23052ab749ae9e9aa272caee7c065f7a98c82c1;p=openwrt%2Fstaging%2Fblogic.git map: add sleep work-around for lw4o6 race-condition Signed-off-by: Steven Barth SVN-Revision: 45936 --- diff --git a/package/network/ipv6/map/Makefile b/package/network/ipv6/map/Makefile index 89d34de1b489..3757ed608820 100644 --- a/package/network/ipv6/map/Makefile +++ b/package/network/ipv6/map/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=map PKG_VERSION:=4 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_LICENSE:=GPL-2.0 include $(INCLUDE_DIR)/package.mk diff --git a/package/network/ipv6/map/files/map.sh b/package/network/ipv6/map/files/map.sh index 5e37aa25b30c..98a493dd5714 100755 --- a/package/network/ipv6/map/files/map.sh +++ b/package/network/ipv6/map/files/map.sh @@ -39,6 +39,9 @@ proto_map_setup() { ( proto_add_host_dependency "$cfg" "::" "$tunlink" ) + # fixme: handle RA/DHCPv6 address race for LW + [ "$type" = lw4o6 ] && sleep 5 + if [ -z "$rule" ]; then rule="type=$type,ipv6prefix=$ip6prefix,prefix6len=$ip6prefixlen,ipv4prefix=$ipaddr,prefix4len=$ip4prefixlen" [ -n "$psid" ] && rule="$rule,psid=$psid"