On 25.09.2019 16:51, Rafał Miłecki wrote:
From: Rafał Miłecki <ra...@milecki.pl>
This new ubus method provides more properly-formatted details about
firmware file. Use it to check if uploaded image is valid.
The old "sysupgrade --test" method is left for now to provide stderr
output.
Signed-off-by: Rafał Miłecki <ra...@milecki.pl>
Missed part:
diff --git a/modules/luci-base/root/usr/share/rpcd/acl.d/luci-base.json
b/modules/luci-base/root/usr/share/rpcd/acl.d/luci-base.json
index 31c154cbc..182f24988 100644
--- a/modules/luci-base/root/usr/share/rpcd/acl.d/luci-base.json
+++ b/modules/luci-base/root/usr/share/rpcd/acl.d/luci-base.json
@@ -44,6 +44,7 @@
"network.device": [ "status" ],
"network.interface": [ "dump" ],
"network": [ "get_proto_handlers" ],
+ "system": [ "validate_firmware_image" ],
"uci": [ "changes", "get" ]
},
"uci": [ "*" ]
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel