From: Florian Eckert Date: Wed, 17 Apr 2024 11:14:39 +0000 (+0200) Subject: luci-mod-system: add support for switching the ssh service on and off. X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=8c8b80c57283b0b46d6569fe0f78c0bb30666f83;p=project%2Fluci.git 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 --- 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;