1 -- ToDo: Autodetect things, Translate, Add descriptions
4 m = Map("olsr", "OLSR", [[OLSR ist ein flexibles Routingprotokoll,
5 dass den Aufbau von mobilen Ad-Hoc Netzen unterstützt.]])
7 s = m:section(NamedSection, "general", "olsr", "Allgemeine Einstellungen")
9 debug = s:option(ListValue, "DebugLevel", "Debugmodus")
14 ipv = s:option(ListValue, "IpVersion", "Internet Protokoll")
15 ipv:value("4", "IPv4")
16 ipv:value("6", "IPv6")
18 noint = s:option(Flag, "AllowNoInt", "Start ohne Netzwerk")
22 s:option(Value, "Pollrate", "Abfragerate (Pollrate)", "s")
24 tcr = s:option(ListValue, "TcRedundancy", "TC-Redundanz")
25 tcr:value("0", "MPR-Selektoren")
26 tcr:value("1", "MPR-Selektoren und MPR")
27 tcr:value("2", "Alle Nachbarn")
29 s:option(Value, "MprCoverage", "MPR-Erfassung")
31 lql = s:option(ListValue, "LinkQualityLevel", "VQ-Level")
32 lql:value("0", "deaktiviert")
33 lql:value("1", "MPR-Auswahl")
34 lql:value("2", "MPR-Auswahl und Routing")
36 lqfish = s:option(Flag, "LinkQualityFishEye", "VQ-Fisheye")
38 s:option(Value, "LinkQualityWinSize", "VQ-Fenstergröße")
40 s:option(Value, "LinkQualityDijkstraLimit", "VQ-Dijkstralimit")
42 hyst = s:option(Flag, "UseHysteresis", "Hysterese aktivieren")
47 i = m:section(TypedSection, "Interface", "Schnittstellen")
52 network = i:option(ListValue, "Interface", "Netzwerkschnittstellen")
54 luci.model.uci.foreach("network", "interface",
56 if section[".name"] ~= "loopback" then
57 network:value(section[".name"])
61 i:option(Value, "HelloInterval", "Hello-Intervall")
63 i:option(Value, "HelloValidityTime", "Hello-Gültigkeit")
65 i:option(Value, "TcInterval", "TC-Intervall")
67 i:option(Value, "TcValidityTime", "TC-Gültigkeit")
69 i:option(Value, "MidInterval", "MID-Intervall")
71 i:option(Value, "MidValidityTime", "MID-Gültigkeit")
73 i:option(Value, "HnaInterval", "HNA-Intervall")
75 i:option(Value, "HnaValidityTime", "HNA-Gültigkeit")
78 p = m:section(TypedSection, "LoadPlugin", "Plugins")
82 lib = p:option(ListValue, "Library", "Bibliothek")
84 for k, v in pairs(luci.fs.dir("/usr/lib")) do
85 if v:sub(1, 6) == "olsrd_" then