summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/freifunk-gwcheck/root
diff options
context:
space:
mode:
authorManuel Munz <freifunk@somakoma.de>2011-09-23 19:45:39 +0000
committerManuel Munz <freifunk@somakoma.de>2011-09-23 19:45:39 +0000
commite37546729cf16219219c1393eea502048a0ee09d (patch)
treec879da838e5e547b7cab99d3efe788ab5c0e3fd9 /contrib/package/freifunk-gwcheck/root
parentc4f19cbfd436b456c47a10ec22ae1cc09768f1a1 (diff)
contrib/freifunk-gwcheck: Fix uci-defaults, add olsrd-mod-dyn-gw-plain depency
Diffstat (limited to 'contrib/package/freifunk-gwcheck/root')
-rw-r--r--contrib/package/freifunk-gwcheck/root/etc/uci-defaults/freifunk-gwcheck4
1 files changed, 2 insertions, 2 deletions
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