diff options
Diffstat (limited to 'applications/luci-app-attendedsysupgrade/root/usr')
3 files changed, 40 insertions, 36 deletions
diff --git a/applications/luci-app-attendedsysupgrade/root/usr/share/luci/menu.d/luci-app-attendedsysupgrade.json b/applications/luci-app-attendedsysupgrade/root/usr/share/luci/menu.d/luci-app-attendedsysupgrade.json index 79d82a828f..33d7019fa3 100644 --- a/applications/luci-app-attendedsysupgrade/root/usr/share/luci/menu.d/luci-app-attendedsysupgrade.json +++ b/applications/luci-app-attendedsysupgrade/root/usr/share/luci/menu.d/luci-app-attendedsysupgrade.json @@ -1,13 +1,31 @@ { - "admin/system/attended_sysupgrade": { + "admin/system/attendedsysupgrade": { "title": "Attended Sysupgrade", - "order": 1, + "order": 60, "action": { - "type": "template", - "path": "attendedsysupgrade" + "type": "firstchild" }, "depends": { - "acl": [ "attendedsysupgrade" ] + "acl": [ "luci-app-attendedsysupgrade" ], + "uci": { "attendedsysupgrade": true } + } + }, + + "admin/system/attendedsysupgrade/overview": { + "title": "Overview", + "order": 1, + "action": { + "type": "view", + "path": "attendedsysupgrade/overview" + } + }, + + "admin/system/attendedsysupgrade/configuration": { + "title": "Configuration", + "order": 2, + "action": { + "type": "view", + "path": "attendedsysupgrade/configuration" } } } diff --git a/applications/luci-app-attendedsysupgrade/root/usr/share/rpcd/acl.d/attendedsysupgrade.json b/applications/luci-app-attendedsysupgrade/root/usr/share/rpcd/acl.d/attendedsysupgrade.json deleted file mode 100644 index 7549319260..0000000000 --- a/applications/luci-app-attendedsysupgrade/root/usr/share/rpcd/acl.d/attendedsysupgrade.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "attendedsysupgrade": { - "description": "attended sysupgrade via rpcd and luci", - "read": { - "ubus": { - "rpc-sys": [ - "upgrade_start", - "packagelist" - ], - "system": [ - "board", - "info" - ], - "uci": [ - "get", "set", "commit" - ] - }, - "uci": [ - "attendedsysupgrade" - ] - }, - "write": { - "cgi-io": [ - "upload" - ], - "uci": [ - "attendedsysupgrade" - ] - } - } -} diff --git a/applications/luci-app-attendedsysupgrade/root/usr/share/rpcd/acl.d/luci-app-attendedsysupgrade.json b/applications/luci-app-attendedsysupgrade/root/usr/share/rpcd/acl.d/luci-app-attendedsysupgrade.json new file mode 100644 index 0000000000..e3ceeaa35d --- /dev/null +++ b/applications/luci-app-attendedsysupgrade/root/usr/share/rpcd/acl.d/luci-app-attendedsysupgrade.json @@ -0,0 +1,17 @@ +{ + "luci-app-attendedsysupgrade": { + "description": "Grant UCI access to LuCI app attendedsysupgrade", + "read": { + "uci": ["attendedsysupgrade"], + "ubus": { + "rpc-sys": ["upgrade_start", "packagelist"] + } + }, + "write": { + "uci": ["attendedsysupgrade"], + "ubus": { + "rpc-sys": ["upgrade_start"] + } + } + } +} |