Skip to content

Commit

Permalink
firmware: keep polling as files may be unavailable during upgrade; cl…
Browse files Browse the repository at this point in the history
…oses #927
  • Loading branch information
fichtner committed May 9, 2016
1 parent 0c35dbe commit 9526856
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/opnsense/mvc/app/views/OPNsense/Core/firmware.volt
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ POSSIBILITY OF SUCH DAMAGE.
ajaxCall('/api/core/firmware/upgrade',{upgrade:$.upgrade_action},function() {
$('#updatelist').empty();
setTimeout(trackStatus, 500);
}).fail(function () {
setTimeout(trackStatus, 500);
});
}

Expand All @@ -105,6 +107,8 @@ POSSIBILITY OF SUCH DAMAGE.
ajaxCall('/api/core/firmware/'+pkg_act+'/'+pkg_name,{},function() {
$('#updatelist').empty();
setTimeout(trackStatus, 500);
}).fail(function () {
setTimeout(trackStatus, 500);
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/opnsense/service/conf/actions.d/actions_firmware.conf
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ type:script
message: remove firmware package %s

[status]
command:cat /tmp/pkg_upgrade.progress 2>&1 || exit 0
command: /usr/bin/touch /tmp/pkg_upgrade.progress 2>&1; /bin/cat /tmp/pkg_upgrade.progress 2>&1
parameters:
type:script_output
message:retrieve upgrade progress status
Expand Down

0 comments on commit 9526856

Please sign in to comment.