contrib/freifunk-gwcheck: Improve uci-defaults
This commit is contained in:
parent
2b5c41037e
commit
c4f19cbfd4
1 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
tables="/etc/iproute2/rt_tables"
|
tables="/etc/iproute2/rt_tables"
|
||||||
[ -z "`grep "gw-check" $tables`" ] && echo "200 gw-check" >> $tables
|
[ -z "`grep -q "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
|
test -f /etc/crontabs/root || touch /etc/crontabs/root
|
||||||
|
[ -z "`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
|
/etc/init.d/cron restart
|
||||||
|
|
Loading…
Reference in a new issue