summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/freifunk-gwcheck/root
diff options
context:
space:
mode:
authorManuel Munz <freifunk@somakoma.de>2011-09-23 19:23:18 +0000
committerManuel Munz <freifunk@somakoma.de>2011-09-23 19:23:18 +0000
commitd8e4734b23016cea5c5099f84a7f2ffbab8e6216 (patch)
treecb1f06928a006357b7e0a532dd0765dc76ffc87d /contrib/package/freifunk-gwcheck/root
parent9ed39e1431395bb84c486df94bc0a3660d7f0936 (diff)
contrib/package: Add freifunk-gwcheck to replace the gateway-check in modules/freifunk
Diffstat (limited to 'contrib/package/freifunk-gwcheck/root')
-rw-r--r--contrib/package/freifunk-gwcheck/root/etc/uci-defaults/freifunk-gwcheck5
1 files changed, 5 insertions, 0 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
new file mode 100644
index 0000000000..e7fc9888ec
--- /dev/null
+++ b/contrib/package/freifunk-gwcheck/root/etc/uci-defaults/freifunk-gwcheck
@@ -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