Merge pull request #2450 from pmelange/fix/luci-mod-freifunk_basics
luci-mod-freifunk: fix the list of community profiles
This commit is contained in:
commit
47d9205fe9
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue