From 256daa259bcfb7f1b38bf9c6b2959a0aaa239b1c Mon Sep 17 00:00:00 2001 From: Manuel Munz Date: Sun, 13 Nov 2011 13:45:17 +0000 Subject: contrib/freifunk-gwcheck: Some fixes suggested by Patrick grimm --- contrib/package/freifunk-gwcheck/root/etc/uci-defaults/freifunk-gwcheck | 1 + 1 file changed, 1 insertion(+) (limited to 'contrib/package/freifunk-gwcheck/root') 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 e04faa562..33b1b99df 100644 --- a/contrib/package/freifunk-gwcheck/root/etc/uci-defaults/freifunk-gwcheck +++ b/contrib/package/freifunk-gwcheck/root/etc/uci-defaults/freifunk-gwcheck @@ -1,5 +1,6 @@ #!/bin/sh tables="/etc/iproute2/rt_tables" +test -d /etc/iproute2/ || mkdir -p /etc/iproute2/ grep -q "gw-check" $tables || echo "200 gw-check" >> $tables test -f /etc/crontabs/root || touch /etc/crontabs/root grep -q "ff_olsr_test_gw.sh" /etc/crontabs/root || echo "* * * * * /usr/sbin/ff_olsr_test_gw.sh" >> /etc/crontabs/root -- cgit v1.2.3