diff options
| author | Steven Barth <steven@midlink.org> | 2008-09-19 17:51:25 +0000 |
|---|---|---|
| committer | Steven Barth <steven@midlink.org> | 2008-09-19 17:51:25 +0000 |
| commit | e190a99be15becdde36dc18fce9ac9d760a024db (patch) | |
| tree | c714ee3fcf84476d0ebd8d3c332ecce0481a9050 /modules/admin-full/luasrc/controller/admin/system.lua | |
| parent | 27bee8b23d57b602b9c373f3dd7af3158ced075d (diff) | |
admin-full/admin-mini: Fixed backup module
Diffstat (limited to 'modules/admin-full/luasrc/controller/admin/system.lua')
| -rw-r--r-- | modules/admin-full/luasrc/controller/admin/system.lua | 6 |
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 5d64336e03..981d6255f2 100644 --- a/modules/admin-full/luasrc/controller/admin/system.lua +++ b/modules/admin-full/luasrc/controller/admin/system.lua @@ -221,8 +221,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 |
