Skip to content

Commit

Permalink
webui: tool-upgrade.cgi: don't redirect to reboot page after sysupgra…
Browse files Browse the repository at this point in the history
…de at this time
  • Loading branch information
gtxaspec committed Jan 2, 2025
1 parent 0a3ec10 commit dc2ee84
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions package/thingino-webui/files/var/www/x/tool-upgrade.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,11 @@ async function handleUpgrade(ev) {
.replace(/\x1B/g, '')
.replace(/[\x00-\x1F\x7F-\x9F]/g, '')

if (line.startsWith('Rebooting in 5 seconds')) {
window.location.href = '/x/reboot.cgi';
return;
}
//FIXME: this won't work, there's no reboot.cgi left on the flash after sysupgrade...
//if (line.startsWith('Rebooting in 5 seconds')) {
// window.location.href = '/x/reboot.cgi';
// return;
//}

if (line.includes('Writing kb:') ||
line.includes('Verifying kb:') ||
Expand Down

0 comments on commit dc2ee84

Please sign in to comment.