diff options
author | pmelange <isprotejesvalkata@gmail.com> | 2018-11-05 10:24:15 +0100 |
---|---|---|
committer | pmelange <isprotejesvalkata@gmail.com> | 2018-11-07 18:41:58 +0100 |
commit | 19b640b53b0ba8585b91a5f5fa23503e0fca76c2 (patch) | |
tree | 52b792c3f5be9d47537829f621cebe990c971e7c /applications/luci-app-olsr | |
parent | a6d96e0716dd63af9254cf8db850c921459454c6 (diff) |
luci-app-olsr: cbi remove library version numbers in library search results
Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
Diffstat (limited to 'applications/luci-app-olsr')
-rw-r--r-- | applications/luci-app-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua | 1 | ||||
-rw-r--r-- | applications/luci-app-olsr/luasrc/model/cbi/olsr/olsrdplugins6.lua | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/applications/luci-app-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua b/applications/luci-app-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua index 2d7cffe6e..59e99c867 100644 --- a/applications/luci-app-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua +++ b/applications/luci-app-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua @@ -227,6 +227,7 @@ else -- 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, diff --git a/applications/luci-app-olsr/luasrc/model/cbi/olsr/olsrdplugins6.lua b/applications/luci-app-olsr/luasrc/model/cbi/olsr/olsrdplugins6.lua index 12fa0a171..9873b0269 100644 --- a/applications/luci-app-olsr/luasrc/model/cbi/olsr/olsrdplugins6.lua +++ b/applications/luci-app-olsr/luasrc/model/cbi/olsr/olsrdplugins6.lua @@ -227,6 +227,7 @@ else -- 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, |