diff options
author | Florian Eckert <fe@dev.tdt.de> | 2024-04-17 13:14:39 +0200 |
---|---|---|
committer | Florian Eckert <fe@dev.tdt.de> | 2024-05-06 13:38:12 +0200 |
commit | 8c8b80c57283b0b46d6569fe0f78c0bb30666f83 (patch) | |
tree | 3c62c5371e5e12c182fc32c611625252100bf178 /modules/luci-mod-system/htdocs/luci-static/resources | |
parent | 29fb4e01b2534e5ef451cbd208bde6e73d972e97 (diff) |
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>
Diffstat (limited to 'modules/luci-mod-system/htdocs/luci-static/resources')
-rw-r--r-- | modules/luci-mod-system/htdocs/luci-static/resources/view/system/dropbear.js | 3 |
1 files changed, 3 insertions, 0 deletions
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 <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; |