Skip to content

base-files: Add ubus events on sysupgrade

Piotr Kubik requested to merge pkubik-sysupgrade_event into devel

Event form: sysupgrade { "status": "", "bank_id": "<bank_id>"}

At the moment status can take 5 values, according to TR-181 Device.DeviceInfo.FirmwareImage: Active, Available, Downloading, InstallationFailed, ActivationFailed

Tested on MTK BPi, successful upgrade of flash bank 1 generates events in following order:

{ "sysupgrade": {"status":"Downloading","bank_id":"1"} }
{ "sysupgrade": {"status":"Available","bank_id":"1"} }
(reboot)
{ "sysupgrade": {"status":"Active","bank_id":"1"} }
{ "sysupgrade": {"status":"Available","bank_id":"2"} }

https://project.iopsys.eu/issues/12424

Merge request reports