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
PKG_NAME:=gre
PKG_VERSION:=1
PKG_NAME:=gre
PKG_VERSION:=1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/package.mk
- ( proto_add_host_dependency "$cfg" "0.0.0.0" "$tunlink" )
+ ( proto_add_host_dependency "$cfg" "$peeraddr" "$tunlink" )
[ -z "$ipaddr" ] && {
local wanif="$tunlink"
[ -z "$ipaddr" ] && {
local wanif="$tunlink"
- ( proto_add_host_dependency "$cfg" "::" "$tunlink" )
+ ( proto_add_host_dependency "$cfg" "$peer6addr" "$tunlink" )
[ -z "$ip6addr" ] && {
local wanif="$tunlink"
[ -z "$ip6addr" ] && {
local wanif="$tunlink"