Trigger post-flash reboot manually

This commit is contained in:
Steven Barth 2008-09-06 18:55:26 +00:00
parent c80d0a350e
commit 087bd8afc7
3 changed files with 8 additions and 2 deletions

View file

@ -85,5 +85,9 @@ done
[ -n "$sysupgrade_init_conffiles" ] && do_save_conffiles
run_hooks "" $sysupgrade_pre_upgrade
ask_bool() {
false
}
v "Switching to ramdisk..."
run_ramfs '. /etc/functions.sh; include /lib/upgrade; do_upgrade'

View file

@ -214,6 +214,7 @@ function action_upgrade()
end
luci.template.render("admin_system/upgrade", {sysupgrade=plat, ret=ret, keep_avail=keep_avail})
luci.sys.reboot()
end
function _keep_pattern()

View file

@ -111,6 +111,7 @@ function action_upgrade()
end
luci.template.render("mini/upgrade", {sysupgrade=plat, ret=ret, keep_avail=keep_avail})
luci.sys.reboot()
end
function _keep_pattern()