1 -- ToDo: Autodetect things, Translate, Add descriptions
4 m = Map("olsr", "OLSR")
6 s = m:section(NamedSection, "general", "olsr", "Allgemeine Einstellungen")
8 debug = s:option(ListValue, "DebugLevel", "Debugmodus")
13 ipv = s:option(ListValue, "IpVersion", "Internet Protokoll")
14 ipv:value("4", "IPv4")
15 ipv:value("6", "IPv6")
17 noint = s:option(Flag, "AllowNoInt", "Start ohne Netzwerk")
21 s:option(Value, "Pollrate", "Abfragerate (Pollrate)", "s").isnumber = true
23 tcr = s:option(ListValue, "TcRedundancy", "TC-Redundanz")
24 tcr:value("0", "MPR-Selektoren")
25 tcr:value("1", "MPR-Selektoren und MPR")
26 tcr:value("2", "Alle Nachbarn")
28 s:option(Value, "MprCoverage", "MPR-Erfassung").isinteger = true
30 lql = s:option(ListValue, "LinkQualityLevel", "VQ-Level")
31 lql:value("0", "deaktiviert")
32 lql:value("1", "MPR-Auswahl")
33 lql:value("2", "MPR-Auswahl und Routing")
35 lqfish = s:option(Flag, "LinkQualityFishEye", "VQ-Fisheye")
37 s:option(Value, "LinkQualityWinSize", "VQ-Fenstergröße").isinteger = true
39 s:option(Value, "LinkQualityDijkstraLimit", "VQ-Dijkstralimit")
41 hyst = s:option(Flag, "UseHysteresis", "Hysterese aktivieren")
46 i = m:section(TypedSection, "Interface", "Schnittstellen")
51 i:option(Value, "Interface", "Netzwerkschnittstellen")
53 i:option(Value, "HelloInterval", "Hello-Intervall").isnumber = true
55 i:option(Value, "HelloValidityTime", "Hello-Gültigkeit").isnumber = true
57 i:option(Value, "TcInterval", "TC-Intervall").isnumber = true
59 i:option(Value, "TcValidityTime", "TC-Gültigkeit").isnumber = true
61 i:option(Value, "MidInterval", "MID-Intervall").isnumber = true
63 i:option(Value, "MidValidityTime", "MID-Gültigkeit").isnumber = true
65 i:option(Value, "HnaInterval", "HNA-Intervall").isnumber = true
67 i:option(Value, "HnaValidityTime", "HNA-Gültigkeit").isnumber = true
70 p = m:section(TypedSection, "LoadPlugin", "Plugins")
74 lib = p:option(ListValue, "Library", "Bibliothek")
76 for k, v in pairs(ffluci.fs.dir("/usr/lib")) do
77 if v:sub(1, 6) == "olsrd_" then