luci-mod-system: add support for switching the ssh service on and off.

Add support for switching the ssh service on and off via LuCI.
This is already possible in the uci section of dropbear.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
Florian Eckert 2024-04-17 13:14:39 +02:00
parent 29fb4e01b2
commit 8c8b80c572

View File

@ -14,6 +14,9 @@ return view.extend({
s.addremove = true;
s.addbtntitle = _('Add instance');
o = s.option(form.Flag, 'enable', _('Enable Instance'), _('Enable <abbr title="Secure Shell">SSH</abbr> service instance'));
o.default = o.enabled;
o = s.option(widgets.NetworkSelect, 'Interface', _('Interface'), _('Listen only on the given interface or, if unspecified, on all'));
o.nocreate = true;