[OpenWrt-Devel] [PATCH procd] system: add "validate_firmware_image" ubus method
Rafał Miłecki
zajec5 at gmail.com
Fri Aug 30 03:30:43 EDT 2019
On 30.08.2019 09:28, Rafał Miłecki wrote:
> This new method allows validating firmware image (stored on a device)
> using ubus. It uses new executable helper that provides detailed info
> about firmware image.
>
> The point of this method is to allow user interfaces provide various
> info before starting actual upgrade process.
Example:
root at OpenWrt:/# ubus call system validate_firmware_image '{ "path": "/tmp/openwrt-brcm47xx-mips74k-standard-squashfs.trx" }'
{
"tests": {
"fwtool_signature": true,
"fwtool_device_match": true
},
"valid": true,
"forceable": true
}
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list