From 0f4f6e89f15aa1dac0bfd676cb8364ef0b6c6e1f Mon Sep 17 00:00:00 2001 From: Ansuel Smith Date: Fri, 29 Jan 2021 19:09:36 +0100 Subject: luci-mod-system: improve sysupgrade page - Add missing -k and -u option from sysupgrade page. - Fix missing check for image verification exit code - Provide the actual reason of the image verification Fixes: #4160 Signed-off-by: Ansuel Smith --- .../luci-mod-system/root/usr/share/rpcd/acl.d/luci-mod-system.json | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/luci-mod-system/root/usr/share/rpcd/acl.d/luci-mod-system.json') diff --git a/modules/luci-mod-system/root/usr/share/rpcd/acl.d/luci-mod-system.json b/modules/luci-mod-system/root/usr/share/rpcd/acl.d/luci-mod-system.json index c5f801a264..e04bcdb476 100644 --- a/modules/luci-mod-system/root/usr/share/rpcd/acl.d/luci-mod-system.json +++ b/modules/luci-mod-system/root/usr/share/rpcd/acl.d/luci-mod-system.json @@ -140,7 +140,13 @@ "/sbin/reboot": [ "exec" ], "/sbin/sysupgrade --force /tmp/firmware.bin": [ "exec" ], "/sbin/sysupgrade -n --force /tmp/firmware.bin": [ "exec" ], + "/sbin/sysupgrade --force -k /tmp/firmware.bin": [ "exec" ], + "/sbin/sysupgrade --force -u /tmp/firmware.bin": [ "exec" ], + "/sbin/sysupgrade --force -u -k /tmp/firmware.bin": [ "exec" ], "/sbin/sysupgrade -n /tmp/firmware.bin": [ "exec" ], + "/sbin/sysupgrade -k /tmp/firmware.bin": [ "exec" ], + "/sbin/sysupgrade -u /tmp/firmware.bin": [ "exec" ], + "/sbin/sysupgrade -u -k /tmp/firmware.bin": [ "exec" ], "/sbin/sysupgrade --restore-backup /tmp/backup.tar.gz": [ "exec" ], "/sbin/sysupgrade --test /tmp/firmware.bin": [ "exec" ], "/sbin/sysupgrade /tmp/firmware.bin": [ "exec" ], -- cgit v1.2.3