Commit 8f531b11 authored by Jos Schellevis's avatar Jos Schellevis

Firwmare upgrade should now work

parent 6d9a3bdc
#!/bin/sh #!/bin/sh
pkg upgrade -y > /tmp/pkg_upgrade.progress pkg upgrade -y > /tmp/pkg_upgrade.progress &
echo '***DONE***' >> /tmp/pkg_upgrade.progress echo '***DONE***' >> /tmp/pkg_upgrade.progress
rm /tmp/pkg_upgrade.progress rm /tmp/pkg_upgrade.progress
...@@ -243,7 +243,7 @@ include("head.inc"); ...@@ -243,7 +243,7 @@ include("head.inc");
success:function(data, textStatus, jqXHR) { success:function(data, textStatus, jqXHR) {
jQuery('#output').prop('innerHTML',data); jQuery('#output').prop('innerHTML',data);
document.getElementById("output").scrollTop = document.getElementById("output").scrollHeight ; document.getElementById("output").scrollTop = document.getElementById("output").scrollHeight ;
if ( data.indexOf('done') < 0 ) { if ( data.indexOf('***DONE***') < 0 ) {
setTimeout(function() { updatestatus(); }, 500); setTimeout(function() { updatestatus(); }, 500);
} else { } else {
jQuery('#updatestatus').html('<span class="text-info">Upgrade Done!</span>'); jQuery('#updatestatus').html('<span class="text-info">Upgrade Done!</span>');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment