From ce5b93a1b7e8b793fbd9150b76d7b4a175abdb56 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 16 Mar 2009 17:49:34 +0000 Subject: [PATCH] applications/luci-olsr: add support for watchdog plugin --- applications/luci-olsr/luasrc/i18n/olsr.de.lua | 2 ++ applications/luci-olsr/luasrc/i18n/olsr.en.lua | 2 ++ .../luci-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua | 6 ++++++ 3 files changed, 10 insertions(+) diff --git a/applications/luci-olsr/luasrc/i18n/olsr.de.lua b/applications/luci-olsr/luasrc/i18n/olsr.de.lua index 4e652c85d..97a2d943e 100644 --- a/applications/luci-olsr/luasrc/i18n/olsr.de.lua +++ b/applications/luci-olsr/luasrc/i18n/olsr.de.lua @@ -125,3 +125,5 @@ olsrd_loadplugin_exportroutes = 'Routen nur an Quagga oder auch an Kernel export olsrd_loadplugin_localpref = 'Lokale Routen immer bevorzugen' olsrd_loadplugin_distance = 'Distanz für exportierte Routen' olsrd_loadplugin_keyfile = 'Schlüsseldatei' +olsrd_loadplugin_file = 'Watchdog Zeitstempeldatei' +olsrd_loadplugin_interval = 'Aktualisierungsinterval in Sekunden' diff --git a/applications/luci-olsr/luasrc/i18n/olsr.en.lua b/applications/luci-olsr/luasrc/i18n/olsr.en.lua index dc1e4423f..5b7f6d3c4 100644 --- a/applications/luci-olsr/luasrc/i18n/olsr.en.lua +++ b/applications/luci-olsr/luasrc/i18n/olsr.en.lua @@ -125,3 +125,5 @@ olsrd_loadplugin_exportroutes = 'Only export routes to Quagga or to kernel too' olsrd_loadplugin_localpref = 'Always prefer local routes' olsrd_loadplugin_distance = 'Distance of exported routes' olsrd_loadplugin_keyfile = 'Key file' +olsrd_loadplugin_file = 'Watchdog timestamp file' +olsrd_loadplugin_interval = 'Refresh interval in seconds' diff --git a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua index a0d6a2357..9c1a83123 100644 --- a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua +++ b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua @@ -2,6 +2,7 @@ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth +Copyright 2009 Jo-Philipp Wich Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -133,6 +134,11 @@ if arg[1] then { Value, "accept", "10.247.200.4" } }, + ["olsrd_watchdog.so.0.1"] = { + { Value, "file", "/var/run/olsrd.watchdog" }, + { Value, "interval", "30" } + }, + ["olsrd_arprefresh.so.0.1"] = {}, ["olsrd_dot_draw.so.0.3"] = {}, ["olsrd_dyn_gw_plain.so.0.4"] = {}, -- 2.25.1