فهرست منبع

gre: Change hostdependcy to remote endpoint tunnel address

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 <[email protected]>

SVN-Revision: 41998
Steven Barth 11 سال پیش
والد
کامیت
bc0acb9db9
2فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 1 1
      package/network/config/gre/Makefile
  2. 2 2
      package/network/config/gre/files/gre.sh

+ 1 - 1
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
 

+ 2 - 2
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"