diff options
Diffstat (limited to 'contrib/package/freifunk-gwcheck/root/etc/uci-defaults')
-rw-r--r-- | contrib/package/freifunk-gwcheck/root/etc/uci-defaults/freifunk-gwcheck | 5 |
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 |