mirror of
https://github.com/openwrt/luci
synced 2025-01-09 04:28:37 +08:00
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>
This commit is contained in:
parent
29fb4e01b2
commit
8c8b80c572
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user