Merge pull request #2451 from pmelange/backport/PR2450-luci_mod-freifunk_basics

Backport 18.06: luci-mod-freifunk: fix the list of community profiles
This commit is contained in:
Jo-Philipp Wich 2019-01-11 16:14:56 +01:00 committed by GitHub
commit 1f423b1141
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,7 +15,7 @@ community.rmempty = false
local profile local profile
for profile in fs.glob(profiles) do 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) community:value(string.gsub(profile, "/etc/config/profile_", ""), name)
end end