Use numeric prefixes for uci-defaults scripts
[project/luci.git] / contrib / package / freifunk-gwcheck / root / etc / uci-defaults / 50_freifunk-gwcheck
1 #!/bin/sh
2 tables="/etc/iproute2/rt_tables"
3 test -d /etc/iproute2/ || mkdir -p /etc/iproute2/
4 grep -q "gw-check" $tables || echo "200 gw-check" >> $tables
5 test -f /etc/crontabs/root || touch /etc/crontabs/root
6 grep -q "ff_olsr_test_gw.sh" /etc/crontabs/root || echo "* * * * *      /usr/sbin/ff_olsr_test_gw.sh" >> /etc/crontabs/root
7 /etc/init.d/cron restart