0
0
mirror of https://github.com/openwrt/routing.git synced 2025-02-23 10:26:14 +00:00
Patrick Grimm d27be8dad9 luci-app-olsrd2: New Package for OLSR2 configuration and status visualisation'
Compile tested: mips_24kc, arm_cortex-a9_vfpv3-d16, i386_pentium4, x86_64, i386_pentium-mmx, mipsel_24kc

Signed-off-by: Patrick Grimm <patrick@lunatiki.de>
2023-01-23 14:25:30 +01:00

38 lines
1.2 KiB
JavaScript

'use strict';
'require view';
'require form';
return view.extend({
render: function() {
var m, s, o;
m = new form.Map('olsrd2', 'OLSRD2 Daemon');
s = m.section(form.TypedSection, 'log', _('OONF Logging'));
s.anonymous = true;
s.addremove = false;
o = s.option(form.Flag, "syslog", _("syslog are boolean options that activate or deactivate the syslog Logging Target."), "");
o.optional = true;
o.datatype = "bool";
o = s.option(form.Flag, "stderr", _("stderr are boolean options that activate or deactivate the stderr Logging Target."), "");
o.optional = true;
o.datatype = "bool";
o = s.option(form.Value, "file", _("file asks for a filename for logging output"),"Filename");
o.rmempty = false;
o.optional = true;
o.placeholder = "/tmp/olsrd2.log";
o.datatype = "string";
o = s.option(form.Value, "debug", _("debug ask for a list of Logging Sources that will be logged by the OONF Core Logging Targets."));
o.rmempty = false;
o.optional = true;
o.datatype = "string";
o = s.option(form.Value, "info", _("info ask for a list of Logging Sources that will be logged by the OONF Core Logging Targets."));
o.rmempty = false;
o.optional = true;
o.datatype = "string";
return m.render();
}
});