mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Update luci-base and luci-mod-admin-full to latest upstream version
This commit is contained in:
parent
7a86a163f5
commit
602a83668e
74 changed files with 7498 additions and 3067 deletions
|
@ -341,9 +341,17 @@ function action_restore()
|
|||
|
||||
local upload = http.formvalue("archive")
|
||||
if upload and #upload > 0 then
|
||||
luci.template.render("admin_system/applyreboot")
|
||||
os.execute("tar -C / -xzf %q >/dev/null 2>&1" % archive_tmp)
|
||||
luci.sys.reboot()
|
||||
if os.execute("gunzip -t %q >/dev/null 2>&1" % archive_tmp) == 0 then
|
||||
luci.template.render("admin_system/applyreboot")
|
||||
os.execute("tar -C / -xzf %q >/dev/null 2>&1" % archive_tmp)
|
||||
luci.sys.reboot()
|
||||
else
|
||||
luci.template.render("admin_system/flashops", {
|
||||
reset_avail = supports_reset(),
|
||||
upgrade_avail = supports_sysupgrade(),
|
||||
backup_invalid = true
|
||||
})
|
||||
end
|
||||
return
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue