contrib/freifunk-gwcheck: Fix uci-defaults, add olsrd-mod-dyn-gw-plain depency
[project/luci.git] / contrib / package / freifunk-gwcheck / root / etc / uci-defaults / freifunk-gwcheck
index e0574e6..e04faa5 100644 (file)
@@ -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