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 | |
| parent | 27bee8b23d57b602b9c373f3dd7af3158ced075d (diff) | |
admin-full/admin-mini: Fixed backup module
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/admin-full/luasrc/controller/admin/system.lua | 6 | ||||
| -rw-r--r-- | modules/admin-mini/luasrc/controller/mini/system.lua | 8 |
2 files changed, 9 insertions, 5 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 diff --git a/modules/admin-mini/luasrc/controller/mini/system.lua b/modules/admin-mini/luasrc/controller/mini/system.lua index 6d16ef8650..a07918518f 100644 --- a/modules/admin-mini/luasrc/controller/mini/system.lua +++ b/modules/admin-mini/luasrc/controller/mini/system.lua @@ -118,9 +118,11 @@ 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 -end +end
\ No newline at end of file |
