summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/freifunk-policyrouting/files/etc/init.d
diff options
context:
space:
mode:
authorManuel Munz <freifunk@somakoma.de>2013-10-05 18:13:23 +0000
committerManuel Munz <freifunk@somakoma.de>2013-10-05 18:13:23 +0000
commit78c36816b0267f0422586fa9e2aba155a45afeb1 (patch)
tree98999f3d29999b97ea6137d9f7eafecffeb96d38 /contrib/package/freifunk-policyrouting/files/etc/init.d
parent2595726dfb3b0236d5ad003d86b117971011329d (diff)
contrib/freifunk-policyrouting: Only disable olsrd_dyngw_plain plugin if it uses the main routing table
Diffstat (limited to 'contrib/package/freifunk-policyrouting/files/etc/init.d')
-rwxr-xr-xcontrib/package/freifunk-policyrouting/files/etc/init.d/freifunk-policyrouting7
1 files changed, 5 insertions, 2 deletions
diff --git a/contrib/package/freifunk-policyrouting/files/etc/init.d/freifunk-policyrouting b/contrib/package/freifunk-policyrouting/files/etc/init.d/freifunk-policyrouting
index b3720e60ac..10cb4454d5 100755
--- a/contrib/package/freifunk-policyrouting/files/etc/init.d/freifunk-policyrouting
+++ b/contrib/package/freifunk-policyrouting/files/etc/init.d/freifunk-policyrouting
@@ -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
}