luci-mod-system: add support for switching the ssh service on and off.
authorFlorian Eckert <fe@dev.tdt.de>
Wed, 17 Apr 2024 11:14:39 +0000 (13:14 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Mon, 6 May 2024 11:38:12 +0000 (13:38 +0200)
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>
modules/luci-mod-system/htdocs/luci-static/resources/view/system/dropbear.js

index 3b1f14235dcfb6d7710344215e20c97bc4f8797a..45b9994cc6f35f952f09a333df8a78652803a78c 100644 (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;