diff options
author | Steven Barth <steven@midlink.org> | 2008-04-07 21:01:39 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-04-07 21:01:39 +0000 |
commit | f341dfe91a766003a9333725e88823e2866fb3c8 (patch) | |
tree | 3596ea31d97ff8c730c5805f2f4d16641b6456cd /src/ffluci/model/cbi/admin_services | |
parent | 9de2f0d5918a0fb2b6d73fb8bcf9db1c9f9cc745 (diff) |
* Added configuration pages for Dropbear, HTTPd, Mount Points
* Reorganized menu structure
* Prepare firmware upgrade mechanism
Diffstat (limited to 'src/ffluci/model/cbi/admin_services')
-rw-r--r-- | src/ffluci/model/cbi/admin_services/dropbear.lua | 14 | ||||
-rw-r--r-- | src/ffluci/model/cbi/admin_services/httpd.lua | 18 | ||||
-rw-r--r-- | src/ffluci/model/cbi/admin_services/olsrd.lua | 82 |
3 files changed, 114 insertions, 0 deletions
diff --git a/src/ffluci/model/cbi/admin_services/dropbear.lua b/src/ffluci/model/cbi/admin_services/dropbear.lua new file mode 100644 index 0000000000..b8fcb9e6b2 --- /dev/null +++ b/src/ffluci/model/cbi/admin_services/dropbear.lua @@ -0,0 +1,14 @@ +-- ToDo: Translate, Add descriptions +m = Map("dropbear", "SSH-Server") + +s = m:section(TypedSection, "dropbear") +s.anonymous = true + +port = s:option(Value, "Port", "Port") +port.isinteger = true + +pwauth = s:option(Flag, "PasswordAuth", "Passwortanmeldung") +pwauth.enabled = 'on' +pwauth.disabled = 'off' + +return m
\ No newline at end of file diff --git a/src/ffluci/model/cbi/admin_services/httpd.lua b/src/ffluci/model/cbi/admin_services/httpd.lua new file mode 100644 index 0000000000..f89dbb7aeb --- /dev/null +++ b/src/ffluci/model/cbi/admin_services/httpd.lua @@ -0,0 +1,18 @@ +-- ToDo: Translate, Add descriptions +m = Map("httpd", "HTTP-Server") + +s = m:section(TypedSection, "httpd") +s.anonymous = true + +port = s:option(Value, "port", "Port") +port.isinteger = true + +s:option(Value, "home", "Wurzelverzeichnis") + +config = s:option(Value, "c_file", "Konfigurationsdatei", "/etc/httpd.conf wenn leer") +config.rmempty = true + +realm = s:option(Value, "realm", "Anmeldeaufforderung") +realm.rmempty = true + +return m
\ No newline at end of file diff --git a/src/ffluci/model/cbi/admin_services/olsrd.lua b/src/ffluci/model/cbi/admin_services/olsrd.lua new file mode 100644 index 0000000000..430b786874 --- /dev/null +++ b/src/ffluci/model/cbi/admin_services/olsrd.lua @@ -0,0 +1,82 @@ +-- ToDo: Autodetect things, Translate, Add descriptions +require("ffluci.fs") + +m = Map("olsr", "OLSR") + +s = m:section(NamedSection, "general", "olsr", "Allgemeine Einstellungen") + +debug = s:option(ListValue, "DebugLevel", "Debugmodus") +for i=0, 9 do + debug:value(i) +end + +ipv = s:option(ListValue, "IpVersion", "Internet Protokoll") +ipv:value("4", "IPv4") +ipv:value("6", "IPv6") + +noint = s:option(Flag, "AllowNoInt", "Start ohne Netzwerk") +noint.enabled = "yes" +noint.disabled = "no" + +s:option(Value, "Pollrate", "Abfragerate (Pollrate)", "s").isnumber = true + +tcr = s:option(ListValue, "TcRedundancy", "TC-Redundanz") +tcr:value("0", "MPR-Selektoren") +tcr:value("1", "MPR-Selektoren und MPR") +tcr:value("2", "Alle Nachbarn") + +s:option(Value, "MprCoverage", "MPR-Erfassung").isinteger = true + +lql = s:option(ListValue, "LinkQualityLevel", "VQ-Level") +lql:value("0", "deaktiviert") +lql:value("1", "MPR-Auswahl") +lql:value("2", "MPR-Auswahl und Routing") + +lqfish = s:option(Flag, "LinkQualityFishEye", "VQ-Fisheye") + +s:option(Value, "LinkQualityWinSize", "VQ-Fenstergröße").isinteger = true + +s:option(Value, "LinkQualityDijkstraLimit", "VQ-Dijkstralimit") + +hyst = s:option(Flag, "UseHysteresis", "Hysterese aktivieren") +hyst.enabled = "yes" +hyst.disabled = "no" + + +i = m:section(TypedSection, "Interface", "Schnittstellen") +i.anonymous = true +i.addremove = true +i.dynamic = true + +i:option(Value, "Interface", "Netzwerkschnittstellen") + +i:option(Value, "HelloInterval", "Hello-Intervall").isnumber = true + +i:option(Value, "HelloValidityTime", "Hello-Gültigkeit").isnumber = true + +i:option(Value, "TcInterval", "TC-Intervall").isnumber = true + +i:option(Value, "TcValidityTime", "TC-Gültigkeit").isnumber = true + +i:option(Value, "MidInterval", "MID-Intervall").isnumber = true + +i:option(Value, "MidValidityTime", "MID-Gültigkeit").isnumber = true + +i:option(Value, "HnaInterval", "HNA-Intervall").isnumber = true + +i:option(Value, "HnaValidityTime", "HNA-Gültigkeit").isnumber = true + + +p = m:section(TypedSection, "LoadPlugin", "Plugins") +p.addremove = true +p.dynamic = true + +lib = p:option(ListValue, "Library", "Bibliothek") +lib:value("") +for k, v in pairs(ffluci.fs.dir("/usr/lib")) do + if v:sub(1, 6) == "olsrd_" then + lib:value(v) + end +end + +return m
\ No newline at end of file |