summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/luasrc
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-09-19 17:47:56 +0000
committerSteven Barth <steven@midlink.org>2008-09-19 17:47:56 +0000
commitf5d4157cab9181b331cfca0f22e529242ba39c66 (patch)
treeecdbcf3492020f390fb68b70e6b41251e07a9266 /modules/admin-full/luasrc
parent2d3f2a9eaa33b49b0592ea5e60f0137372b22d48 (diff)
admin-full/admin-mini: Fixed backup module
Diffstat (limited to 'modules/admin-full/luasrc')
-rw-r--r--modules/admin-full/luasrc/controller/admin/system.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/admin-full/luasrc/controller/admin/system.lua b/modules/admin-full/luasrc/controller/admin/system.lua
index c89c5859b..ba592da2b 100644
--- a/modules/admin-full/luasrc/controller/admin/system.lua
+++ b/modules/admin-full/luasrc/controller/admin/system.lua
@@ -222,8 +222,10 @@ function _keep_pattern()
local files = luci.model.uci.cursor():get_all("luci", "flash_keep")
if files then
kpattern = ""
- for k,v in pairs(files) do
- kpattern = kpattern .. " " .. v
+ for k, v in pairs(files) do
+ if k:sub(1,1) ~= "." and luci.fs.glob(v) then
+ kpattern = kpattern .. " " .. v
+ end
end
end
return kpattern