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:
Jo-Philipp Wich 2019-01-11 16:14:20 +01:00 committed by GitHub
commit 47d9205fe9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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