From bb48f0b5c544907661f79cf5fdd6e3809125805d Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 16 Mar 2009 17:36:00 +0000 Subject: modules/freifunk: add olsrd watchdog script, remove olsrd interface defaults --- modules/freifunk/root/etc/init.d/freifunk | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/freifunk/root/etc/init.d') diff --git a/modules/freifunk/root/etc/init.d/freifunk b/modules/freifunk/root/etc/init.d/freifunk index 61bd58055b..a61f8b7a17 100755 --- a/modules/freifunk/root/etc/init.d/freifunk +++ b/modules/freifunk/root/etc/init.d/freifunk @@ -13,6 +13,10 @@ boot() { echo "* * * * * /usr/sbin/ff_olsr_test_gw" >> /etc/crontabs/root } + grep -q '/usr/sbin/ff_olsr_watchdog' /etc/crontabs/root || { + echo "*/5 * * * * /usr/sbin/ff_olsr_watchdog" >> /etc/crontabs/root + } + [ -f /etc/rc.local ] && . /etc/rc.local [ -d /etc/rc.local.d ] && { for file in /etc/rc.local.d/*; do -- cgit v1.2.3