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
1 #!/bin/sh
2 tables="/etc/iproute2/rt_tables"
3 [ -z "`grep "gw-check" $tables`" ] && echo "200 gw-check" >> $tables
4 [ -z "`grep "ff_olsr_test_gw.sh" /etc/crontabs/root`" ] && echo "* * * * * /usr/sbin/ff_olsr_test_gw.sh" >> /etc/crontabs/root
5 /etc/init.d/cron restart