From 7c108683c6b65007e3ce8ce6db5e0e48aee87e2b Mon Sep 17 00:00:00 2001 From: Rafał Miłecki Date: Wed, 25 Sep 2019 16:51:37 +0200 Subject: luci-mod-system: use "system" new "validate_firmware_image" ubus method MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 [Added missing ACL, add default value for the ubus failure case] Signed-off-by: Jo-Philipp Wich --- modules/luci-base/root/usr/share/rpcd/acl.d/luci-base.json | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/luci-base/root/usr') 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 31c154cbcb..182f249884 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": [ "*" ] -- cgit v1.2.3