Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
-- create a loadplugin section for each found plugin
for v in fs.dir("/usr/lib") do
if v:sub(1, 6) == "olsrd_" then
+ v = string.match(v, "^(olsrd.*)%.so%..*")
if not plugins[v] then
mpi.uci:section(
"olsrd", "LoadPlugin", nil,
-- create a loadplugin section for each found plugin
for v in fs.dir("/usr/lib") do
if v:sub(1, 6) == "olsrd_" then
+ v=string.match(v, "^(olsrd_.*)%.so%..*")
if not plugins[v] then
mpi.uci:section(
"olsrd6", "LoadPlugin", nil,