2011-09-23 19:23:18 +00:00
|
|
|
#!/bin/sh
|
|
|
|
tables="/etc/iproute2/rt_tables"
|
2011-11-13 13:45:17 +00:00
|
|
|
test -d /etc/iproute2/ || mkdir -p /etc/iproute2/
|
2011-09-23 19:45:39 +00:00
|
|
|
grep -q "gw-check" $tables || echo "200 gw-check" >> $tables
|
2011-09-23 19:27:23 +00:00
|
|
|
test -f /etc/crontabs/root || touch /etc/crontabs/root
|
2011-09-23 19:45:39 +00:00
|
|
|
grep -q "ff_olsr_test_gw.sh" /etc/crontabs/root || echo "* * * * * /usr/sbin/ff_olsr_test_gw.sh" >> /etc/crontabs/root
|
2011-09-23 19:23:18 +00:00
|
|
|
/etc/init.d/cron restart
|