contrib/freifunk-policyrouting: User higher prio for fallback ip rule so that this rule will be after all rules which are added by netifd for openwrts new native ip support

This commit is contained in:
Manuel Munz 2013-06-14 21:58:02 +00:00
parent b543594e5e
commit 0cb8eb3b0c
2 changed files with 3 additions and 3 deletions

View file

@ -4,7 +4,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=freifunk-policyrouting
PKG_RELEASE:=4
PKG_RELEASE:=5
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)

View file

@ -88,7 +88,7 @@ add_lookup_rule() {
else
rule="rule"
fi
uci batch <<- EOF
set network.${name}ipv${p}="$rule"
set network.${name}ipv${p}.lookup="$lookup"
@ -116,7 +116,7 @@ start() {
add_lookup_rule localnets localnets 2000
if [ "$fallback" = 1 ]; then
add_lookup_rule olsr-default olsr-default 33000
add_lookup_rule olsr-default olsr-default 100000
fi
fi
uci commit network