luci-mod-freifunk: fix the list of community profiles

Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
This commit is contained in:
pmelange 2019-01-11 13:29:48 +01:00
parent 04d60f2144
commit 14456d30fb

View file

@ -15,7 +15,7 @@ community.rmempty = false
local profile
for profile in fs.glob(profiles) do
local name = uci:get_first(profile, "community", "name") or "?"
local name = uci:get_first(string.gsub(profile, "/etc/config/", ""), "community", "name") or "?"
community:value(string.gsub(profile, "/etc/config/profile_", ""), name)
end