From 14456d30fbc75aa38fd156c38a177792fe2ebd16 Mon Sep 17 00:00:00 2001 From: pmelange Date: Fri, 11 Jan 2019 13:29:48 +0100 Subject: [PATCH] luci-mod-freifunk: fix the list of community profiles Signed-off-by: pmelange --- modules/luci-mod-freifunk/luasrc/model/cbi/freifunk/basics.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-mod-freifunk/luasrc/model/cbi/freifunk/basics.lua b/modules/luci-mod-freifunk/luasrc/model/cbi/freifunk/basics.lua index b08366de6..eb0b49b11 100644 --- a/modules/luci-mod-freifunk/luasrc/model/cbi/freifunk/basics.lua +++ b/modules/luci-mod-freifunk/luasrc/model/cbi/freifunk/basics.lua @@ -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 -- 2.25.1