diff options
author | Manuel Munz <munz@comuno.net> | 2015-05-30 23:01:24 +0200 |
---|---|---|
committer | Manuel Munz <munz@comuno.net> | 2015-05-30 23:01:24 +0200 |
commit | 5ef1485133ad0776cdfe028bc233641553e074f1 (patch) | |
tree | 9b92b2fb60bf255a8de932b109c1448a90cb8bec /modules/luci-mod-freifunk/luasrc | |
parent | 7f26be36281f03ad11642cbfede5efa99fd22f66 (diff) |
modules/freifunk: fix basics cbi model
Diffstat (limited to 'modules/luci-mod-freifunk/luasrc')
-rw-r--r-- | modules/luci-mod-freifunk/luasrc/model/cbi/freifunk/basics.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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 019e404ef..0d3d971c3 100644 --- a/modules/luci-mod-freifunk/luasrc/model/cbi/freifunk/basics.lua +++ b/modules/luci-mod-freifunk/luasrc/model/cbi/freifunk/basics.lua @@ -5,7 +5,7 @@ local fs = require "nixio.fs" local util = require "luci.util" local uci = require "luci.model.uci".cursor() -local profiles = "/etc/config/profile_" +local profiles = "/etc/config/profile_*" m = Map("freifunk", translate ("Community")) c = m:section(NamedSection, "community", "public", nil, translate("These are the basic settings for your local wireless community. These settings define the default values for the wizard and DO NOT affect the actual configuration of the router.")) @@ -14,7 +14,7 @@ community = c:option(ListValue, "name", translate ("Community")) community.rmempty = false local profile -for profile in fs.dir(profiles) do +for profile in fs.glob(profiles) do local name = uci:get_first(profile, "community", "name") or "?" community:value(profile, name) end |