contrib/freifunk-policyrouting: Only disable olsrd_dyngw_plain plugin if it uses the main routing table
This commit is contained in:
parent
2595726dfb
commit
78c36816b0
2 changed files with 6 additions and 3 deletions
|
@ -4,7 +4,7 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=freifunk-policyrouting
|
PKG_NAME:=freifunk-policyrouting
|
||||||
PKG_RELEASE:=5
|
PKG_RELEASE:=6
|
||||||
|
|
||||||
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
||||||
|
|
||||||
|
|
|
@ -53,8 +53,11 @@ disable_dyngw() {
|
||||||
|
|
||||||
dyngwplainlib=`uci show olsrd |grep dyn_gw_plain |awk {' FS="."; print $1"."$2 '}`
|
dyngwplainlib=`uci show olsrd |grep dyn_gw_plain |awk {' FS="."; print $1"."$2 '}`
|
||||||
if [ -n "$dyngwplainlib" ]; then
|
if [ -n "$dyngwplainlib" ]; then
|
||||||
uci set $dyngwplainlib.ignore=1
|
rttable="$(uci -q get $dyngwplainlib.RtTable)"
|
||||||
uci commit olsrd
|
if [ -z "$rttable" ] || [ "$rttable" = "254" ]; then
|
||||||
|
uci set $dyngwplainlib.ignore=1
|
||||||
|
uci commit olsrd
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue