admin-full/admin-mini: Fixed backup module
This commit is contained in:
parent
2d3f2a9eaa
commit
f5d4157cab
3 changed files with 13 additions and 10 deletions
|
@ -10,12 +10,11 @@ config core brand
|
||||||
option distro "Development Snapshot"
|
option distro "Development Snapshot"
|
||||||
|
|
||||||
config extern flash_keep
|
config extern flash_keep
|
||||||
option uci "/etc/config"
|
option uci "/etc/config/"
|
||||||
option dropbear "/etc/dropbear"
|
option dropbear "/etc/dropbear/"
|
||||||
option openvpn "/etc/openvpn"
|
option openvpn "/etc/openvpn/"
|
||||||
option passwd "/etc/passwd"
|
option passwd "/etc/passwd"
|
||||||
option ipkg "/etc/ipkg.conf"
|
option opkg "/etc/opkg.conf"
|
||||||
option httpd "/etc/httpd.conf"
|
|
||||||
option firewall "/etc/firewall.user"
|
option firewall "/etc/firewall.user"
|
||||||
|
|
||||||
config internal languages
|
config internal languages
|
||||||
|
|
|
@ -222,8 +222,10 @@ function _keep_pattern()
|
||||||
local files = luci.model.uci.cursor():get_all("luci", "flash_keep")
|
local files = luci.model.uci.cursor():get_all("luci", "flash_keep")
|
||||||
if files then
|
if files then
|
||||||
kpattern = ""
|
kpattern = ""
|
||||||
for k,v in pairs(files) do
|
for k, v in pairs(files) do
|
||||||
kpattern = kpattern .. " " .. v
|
if k:sub(1,1) ~= "." and luci.fs.glob(v) then
|
||||||
|
kpattern = kpattern .. " " .. v
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return kpattern
|
return kpattern
|
||||||
|
|
|
@ -119,8 +119,10 @@ function _keep_pattern()
|
||||||
local files = luci.model.uci.cursor():get_all("luci", "flash_keep")
|
local files = luci.model.uci.cursor():get_all("luci", "flash_keep")
|
||||||
if files then
|
if files then
|
||||||
kpattern = ""
|
kpattern = ""
|
||||||
for k,v in pairs(files) do
|
for k, v in pairs(files) do
|
||||||
kpattern = kpattern .. " " .. v
|
if k:sub(1,1) ~= "." and luci.fs.glob(v) then
|
||||||
|
kpattern = kpattern .. " " .. v
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return kpattern
|
return kpattern
|
||||||
|
|
Loading…
Reference in a new issue