diff options
Diffstat (limited to 'src/ffluci/model')
-rw-r--r-- | src/ffluci/model/cbi/admin_index/luci.lua | 3 | ||||
-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 (renamed from src/ffluci/model/cbi/admin_mesh/olsrd.lua) | 0 | ||||
-rw-r--r-- | src/ffluci/model/cbi/admin_system/fstab.lua | 21 | ||||
-rw-r--r-- | src/ffluci/model/menu/00main.lua | 18 |
6 files changed, 66 insertions, 8 deletions
diff --git a/src/ffluci/model/cbi/admin_index/luci.lua b/src/ffluci/model/cbi/admin_index/luci.lua index ec6c2228b..eed626c5b 100644 --- a/src/ffluci/model/cbi/admin_index/luci.lua +++ b/src/ffluci/model/cbi/admin_index/luci.lua @@ -5,6 +5,9 @@ c = m:section(NamedSection, "main", "core", "Allgemein") c:option(Value, "lang", "Sprache") c:option(Value, "mediaurlbase", "Mediaverzeichnis") +f = m:section(NamedSection, "flash", "extern", "Firmwareupgrade") +f:option(Value, "keep", "Übernehme Dateien").size = 64 + p = m:section(NamedSection, "category_privileges", "core", "Kategorieprivilegien") p.dynamic = true 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 000000000..b8fcb9e6b --- /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 000000000..f89dbb7ae --- /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_mesh/olsrd.lua b/src/ffluci/model/cbi/admin_services/olsrd.lua index 430b78687..430b78687 100644 --- a/src/ffluci/model/cbi/admin_mesh/olsrd.lua +++ b/src/ffluci/model/cbi/admin_services/olsrd.lua diff --git a/src/ffluci/model/cbi/admin_system/fstab.lua b/src/ffluci/model/cbi/admin_system/fstab.lua new file mode 100644 index 000000000..cf9a483d7 --- /dev/null +++ b/src/ffluci/model/cbi/admin_system/fstab.lua @@ -0,0 +1,21 @@ +m = Map("fstab", "Einhängepunkte") + +mount = m:section(TypedSection, "mount", "Einhängepunkte") +mount.anonymous = true +mount.addremove = true + +mount:option(Flag, "enabled", "aktivieren") +mount:option(Value, "device", "Gerät") +mount:option(Value, "target", "Einhängepunkt") +mount:option(Value, "fstype", "Dateisystem") +mount:option(Value, "options", "Optionen") + + +swap = m:section(TypedSection, "swap", "SWAP") +swap.anonymous = true +swap.addremove = true + +swap:option(Flag, "enabled", "aktivieren") +swap:option(Value, "device", "Gerät") + +return m diff --git a/src/ffluci/model/menu/00main.lua b/src/ffluci/model/menu/00main.lua index e0bd403c1..d1c535f76 100644 --- a/src/ffluci/model/menu/00main.lua +++ b/src/ffluci/model/menu/00main.lua @@ -4,17 +4,22 @@ act("contact", "Kontakt") add("admin", "index", "Übersicht", 10) -act("luci", "FFLuCI") act("contact", "Kontakt") +act("luci", "FFLuCI") add("admin", "system", "System", 20) act("packages", "Paketverwaltung") act("passwd", "Passwort ändern") act("sshkeys", "SSH-Schlüssel") -act("ipkg", "IPKG-Konfiguration") +act("fstab", "Einhängepunkte") act("reboot", "Neu starten") -add("admin", "network", "Netzwerk", 30) +add("admin", "services", "Dienste", 30) +act("olsrd", "OLSR") +act("httpd", "HTTP-Server") +act("dropbear", "SSH-Server") + +add("admin", "network", "Netzwerk", 40) act("vlan", "Switch") act("ifaces", "Schnittstellen") act("ptp", "PPPoE / PPTP") @@ -22,9 +27,6 @@ act("routes", "Statische Routen") act("portfw", "Portweiterleitung") act("firewall", "Firewall") -add("admin", "wifi", "Drahtlos", 40) +add("admin", "wifi", "Drahtlos", 50) act("devices", "Geräte") -act("networks", "Netze") - -add("admin", "mesh", "Mesh", 50) -act("olsrd", "OLSR")
\ No newline at end of file +act("networks", "Netze")
\ No newline at end of file |