Skip to content

Commit

Permalink
luci-mod-system: add support for switching the ssh service on and off.
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
feckert committed May 6, 2024
1 parent 29fb4e0 commit 8c8b80c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 8c8b80c

Please sign in to comment.