luci-mod-freifunk: fix the list of community profiles
Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
This commit is contained in:
parent
e3fa766b58
commit
e38e189b35
@ -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…
x
Reference in New Issue
Block a user