diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-03-16 17:36:00 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-03-16 17:36:00 +0000 |
commit | bb48f0b5c544907661f79cf5fdd6e3809125805d (patch) | |
tree | ce71071e520fcba0f06fcf9185cb7ead95c8bd4b /modules/freifunk/root/etc/init.d | |
parent | 129be80785b60b8e4bda7be8a211c1716a29f27a (diff) |
modules/freifunk: add olsrd watchdog script, remove olsrd interface defaults
Diffstat (limited to 'modules/freifunk/root/etc/init.d')
-rwxr-xr-x | modules/freifunk/root/etc/init.d/freifunk | 4 |
1 files changed, 4 insertions, 0 deletions
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 |