diff options
author | Steven Barth <cyrus@openwrt.org> | 2014-08-05 09:57:55 +0000 |
---|---|---|
committer | Steven Barth <cyrus@openwrt.org> | 2014-08-05 09:57:55 +0000 |
commit | bc0acb9db9548ac6f330de78b8dc17c966716d8d (patch) | |
tree | ced3a1c9c5ae63b6b7fca2534aba5255fd86484e /package/network/config/gre/files | |
parent | 30ec58a2176f579c45b9dce8a2584546aff3fcf5 (diff) | |
download | master-31e0f0ae-bc0acb9db9548ac6f330de78b8dc17c966716d8d.tar.gz master-31e0f0ae-bc0acb9db9548ac6f330de78b8dc17c966716d8d.tar.bz2 master-31e0f0ae-bc0acb9db9548ac6f330de78b8dc17c966716d8d.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>
SVN-Revision: 41998
Diffstat (limited to 'package/network/config/gre/files')
-rwxr-xr-x | package/network/config/gre/files/gre.sh | 4 |
1 files changed, 2 insertions, 2 deletions
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" |