a8ce2694a5dedfb40e3bb660524b55cef2377ee7
[project/luci.git] / modules / admin-core / luasrc / model / cbi / admin_services / dropbear.lua
1 --[[
2 LuCI - Lua Configuration Interface
3
4 Copyright 2008 Steven Barth <steven@midlink.org>
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10         http://www.apache.org/licenses/LICENSE-2.0
11
12 $Id$
13 ]]--
14 m = Map("dropbear", "Dropbear SSHd", translate("a_srv_dropbear1"))
15
16 s = m:section(TypedSection, "dropbear", "")
17 s.anonymous = true
18
19 port = s:option(Value, "Port", translate("port"))
20 port.isinteger = true
21
22 pwauth = s:option(Flag, "PasswordAuth", translate("a_srv_d_pwauth"), translate("a_srv_d_pwauth1"))
23 pwauth.enabled = 'on'
24 pwauth.disabled = 'off'
25
26 return m