From: Manuel Munz Date: Fri, 14 Jun 2013 21:58:02 +0000 (+0000) Subject: contrib/freifunk-policyrouting: User higher prio for fallback ip rule so that this... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0cb8eb3b0c28451ef26bc0b7aa1fe5c8463ec12b;p=project%2Fluci.git 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 --- diff --git a/contrib/package/freifunk-policyrouting/Makefile b/contrib/package/freifunk-policyrouting/Makefile index a5f576e980..22fdc59cb4 100644 --- a/contrib/package/freifunk-policyrouting/Makefile +++ b/contrib/package/freifunk-policyrouting/Makefile @@ -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) 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 df98c982b8..b3720e60ac 100755 --- a/contrib/package/freifunk-policyrouting/files/etc/init.d/freifunk-policyrouting +++ b/contrib/package/freifunk-policyrouting/files/etc/init.d/freifunk-policyrouting @@ -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