From 8c8b80c57283b0b46d6569fe0f78c0bb30666f83 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Wed, 17 Apr 2024 13:14:39 +0200 Subject: [PATCH] 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 --- .../htdocs/luci-static/resources/view/system/dropbear.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/dropbear.js b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/dropbear.js index 3b1f14235d..45b9994cc6 100644 --- a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/dropbear.js +++ b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/dropbear.js @@ -14,6 +14,9 @@ return view.extend({ s.addremove = true; s.addbtntitle = _('Add instance'); + o = s.option(form.Flag, 'enable', _('Enable Instance'), _('Enable SSH 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; -- 2.30.2