summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/root/usr
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2019-09-25 16:51:37 +0200
committerJo-Philipp Wich <jo@mein.io>2019-10-02 09:46:18 +0200
commit7c108683c6b65007e3ce8ce6db5e0e48aee87e2b (patch)
treec6e9219b78056937c48eced11c4ba408a6c9e167 /modules/luci-base/root/usr
parentb2809cebd8009e7a68e2ad7da95b6335e1e9527b (diff)
luci-mod-system: use "system" new "validate_firmware_image" ubus method
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@milecki.pl> [Added missing ACL, add default value for the ubus failure case] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/root/usr')
-rw-r--r--modules/luci-base/root/usr/share/rpcd/acl.d/luci-base.json1
1 files changed, 1 insertions, 0 deletions
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": [ "*" ]