diff options
author | Steven Barth <steven@midlink.org> | 2014-08-05 10:00:25 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2014-08-05 10:00:25 +0000 |
commit | c1f7f1313245f106e2d60f719a1741864a5e1a0f (patch) | |
tree | 383fdebccb0e3c7645c7a821436527de53955934 /package/network/config | |
parent | a60f86878631656e5e3e80fc09879ec1b11299e5 (diff) | |
download | upstream-c1f7f1313245f106e2d60f719a1741864a5e1a0f.tar.gz upstream-c1f7f1313245f106e2d60f719a1741864a5e1a0f.tar.bz2 upstream-c1f7f1313245f106e2d60f719a1741864a5e1a0f.zip |
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/branches/barrier_breaker@41999 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/config')
-rw-r--r-- | package/network/config/gre/Makefile | 2 | ||||
-rwxr-xr-x | 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 efca4643d5..9f5135e5a5 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 38c0fc4841..1728b01fcc 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" |