contrib/package: Add freifunk-gwcheck to replace the gateway-check in modules/freifunk
[project/luci.git] / contrib / package / freifunk-gwcheck / root / etc / uci-defaults / freifunk-gwcheck
diff --git a/contrib/package/freifunk-gwcheck/root/etc/uci-defaults/freifunk-gwcheck b/contrib/package/freifunk-gwcheck/root/etc/uci-defaults/freifunk-gwcheck
new file mode 100644 (file)
index 0000000..e7fc988
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+tables="/etc/iproute2/rt_tables"
+[ -z "`grep "gw-check" $tables`" ] && echo "200 gw-check" >> $tables
+[ -z "`grep "ff_olsr_test_gw.sh" /etc/crontabs/root`" ] && echo "* * * * *     /usr/sbin/ff_olsr_test_gw.sh" >> /etc/crontabs/root
+/etc/init.d/cron restart