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@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
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to