[OpenWrt-Devel] [PATCH] gre: Change hostdependcy to remote endpoint tunnel address

Hans Dedecker dedeckeh at gmail.com
Tue Aug 5 05:23:25 EDT 2014


Depend on the GRE tunnel peeraddr to trigger setup of the tunnel interface.
Addresses the issue reported in https://lists.openwrt.org/pipermail/openwrt-devel/2014-August/027201.html

Signed-off-by: Hans Dedecker <dedeckeh at gmail.com>
---
 package/network/config/gre/Makefile     |    2 +-
 package/network/config/gre/files/gre.sh |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/package/network/config/gre/Makefile b/package/network/config/gre/Makefile
index efca464..9f5135e 100644
--- a/package/network/config/gre/Makefile
+++ b/package/network/config/gre/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=gre
 PKG_VERSION:=1
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 include $(INCLUDE_DIR)/package.mk
 
diff --git a/package/network/config/gre/files/gre.sh b/package/network/config/gre/files/gre.sh
index 38c0fc4..1728b01 100755
--- a/package/network/config/gre/files/gre.sh
+++ b/package/network/config/gre/files/gre.sh
@@ -51,7 +51,7 @@ gre_setup() {
 		exit
 	}
 
-	( proto_add_host_dependency "$cfg" "0.0.0.0" "$tunlink" )
+	( proto_add_host_dependency "$cfg" "$peeraddr" "$tunlink" )
 
 	[ -z "$ipaddr" ] && {
 		local wanif="$tunlink"
@@ -108,7 +108,7 @@ grev6_setup() {
 		exit
 	}
 
-	( proto_add_host_dependency "$cfg" "::" "$tunlink" )
+	( proto_add_host_dependency "$cfg" "$peer6addr" "$tunlink" )
 
 	[ -z "$ip6addr" ] && {
 		local wanif="$tunlink"
-- 
1.7.9.5
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list