From e37546729cf16219219c1393eea502048a0ee09d Mon Sep 17 00:00:00 2001 From: Manuel Munz Date: Fri, 23 Sep 2011 19:45:39 +0000 Subject: contrib/freifunk-gwcheck: Fix uci-defaults, add olsrd-mod-dyn-gw-plain depency --- contrib/package/freifunk-gwcheck/Makefile | 2 +- .../package/freifunk-gwcheck/root/etc/uci-defaults/freifunk-gwcheck | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'contrib') diff --git a/contrib/package/freifunk-gwcheck/Makefile b/contrib/package/freifunk-gwcheck/Makefile index 4922c236c..ddadc053b 100644 --- a/contrib/package/freifunk-gwcheck/Makefile +++ b/contrib/package/freifunk-gwcheck/Makefile @@ -15,7 +15,7 @@ define Package/freifunk-gwcheck CATEGORY:=LuCI SUBMENU:=Freifunk TITLE:=Freifunk gateway check script - DEPENDS:=+firewall +ip +iptables-mod-ipopt + DEPENDS:=+firewall +ip +iptables-mod-ipopt +olsrd-mod-dyn-gw-plain endef define Package/freifunk-gwcheck/description diff --git a/contrib/package/freifunk-gwcheck/root/etc/uci-defaults/freifunk-gwcheck b/contrib/package/freifunk-gwcheck/root/etc/uci-defaults/freifunk-gwcheck index e0574e640..e04faa562 100644 --- a/contrib/package/freifunk-gwcheck/root/etc/uci-defaults/freifunk-gwcheck +++ b/contrib/package/freifunk-gwcheck/root/etc/uci-defaults/freifunk-gwcheck @@ -1,6 +1,6 @@ #!/bin/sh tables="/etc/iproute2/rt_tables" -[ -z "`grep -q "gw-check" $tables`" ] && echo "200 gw-check" >> $tables +grep -q "gw-check" $tables || echo "200 gw-check" >> $tables test -f /etc/crontabs/root || touch /etc/crontabs/root -[ -z "`grep -q "ff_olsr_test_gw.sh" /etc/crontabs/root`" ] && echo "* * * * * /usr/sbin/ff_olsr_test_gw.sh" >> /etc/crontabs/root +grep -q "ff_olsr_test_gw.sh" /etc/crontabs/root || echo "* * * * * /usr/sbin/ff_olsr_test_gw.sh" >> /etc/crontabs/root /etc/init.d/cron restart -- cgit v1.2.3