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 <dedeckeh@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41998 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Steven Barth 2014-08-05 09:57:55 +00:00
parent 972a7d22d9
commit 658db62b29
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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"