X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=contrib%2Fpackage%2Ffreifunk-gwcheck%2Froot%2Fetc%2Fuci-defaults%2F50_freifunk-gwcheck;fp=contrib%2Fpackage%2Ffreifunk-gwcheck%2Froot%2Fetc%2Fuci-defaults%2F50_freifunk-gwcheck;h=33b1b99dfadf2ccc581047d5e3096867a13f7eeb;hp=0000000000000000000000000000000000000000;hb=8eaac4b637d989680ad86dc3e84b0f3b547c1619;hpb=445ae20db8812bcff3e4c0e32859ea1d3d5fbe4b diff --git a/contrib/package/freifunk-gwcheck/root/etc/uci-defaults/50_freifunk-gwcheck b/contrib/package/freifunk-gwcheck/root/etc/uci-defaults/50_freifunk-gwcheck new file mode 100644 index 000000000..33b1b99df --- /dev/null +++ b/contrib/package/freifunk-gwcheck/root/etc/uci-defaults/50_freifunk-gwcheck @@ -0,0 +1,7 @@ +#!/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 +/etc/init.d/cron restart