[OpenWrt-Devel] [PATCH luci 1/2] luci-mod-system: use "system" new "validate_firmware_image" ubus method

Rafał Miłecki zajec5 at gmail.com
Thu Sep 26 00:27:19 EDT 2019


On 25.09.2019 16:51, Rafał Miłecki wrote:
> From: Rafał Miłecki <rafal at 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 <rafal at 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 at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list