mirror of
https://github.com/openwrt/luci.git
synced 2026-08-29 08:31:46 +04:00
contrib/freifunk-policyrouting: Only disable olsrd_dyngw_plain plugin if it uses the main routing table
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=freifunk-policyrouting
|
||||
PKG_RELEASE:=5
|
||||
PKG_RELEASE:=6
|
||||
|
||||
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 '}`
|
||||
if [ -n "$dyngwplainlib" ]; then
|
||||
uci set $dyngwplainlib.ignore=1
|
||||
uci commit olsrd
|
||||
rttable="$(uci -q get $dyngwplainlib.RtTable)"
|
||||
if [ -z "$rttable" ] || [ "$rttable" = "254" ]; then
|
||||
uci set $dyngwplainlib.ignore=1
|
||||
uci commit olsrd
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user