Skip to content
Snippets Groups Projects
Commit bc0acb9d authored by Steven Barth's avatar Steven Barth
Browse files

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: default avatarHans Dedecker <dedeckeh@gmail.com>

SVN-Revision: 41998
parent 30ec58a2
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment