mirror of
https://github.com/openwrt/routing.git
synced 2025-02-23 10:26:14 +00:00
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>
33 lines
1.2 KiB
JavaScript
33 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, 'global', _('It controls the basic behavior of the OONF core.'));
|
|
s.anonymous = true;
|
|
s.addremove = false;
|
|
|
|
o = s.option(form.Flag, "failfast", _("failfast is another boolean setting which can activate an error during startup if a requested plugin does not load or an unknown configuration variable is set."), "");
|
|
o.optional = true;
|
|
o.rmempty = true;
|
|
o.datatype = 'bool';
|
|
o = s.option(form.Value, "pidfile", _("pidfile is used together with the fork option to store the pid of the background process in a file."), "Filename");
|
|
o.optional = true;
|
|
o.rmempty = true;
|
|
o.placeholder = '/var/run/olsrd2.pid';
|
|
o.datatype = 'string';
|
|
o = s.option(form.Value, "lockfile", _("lockfile creates a file on disk and keeps a lock on it as long as the OONF application is running to prevent the application from running multiple times at once."), "Filename");
|
|
o.rmempty = false;
|
|
o.optional = true;
|
|
o.placeholder = "/var/lock/olsrd2";
|
|
o.datatype = "string";
|
|
|
|
return m.render();
|
|
}
|
|
});
|