diff options
Diffstat (limited to 'applications/luci-app-attendedsysupgrade/root/usr')
-rw-r--r-- | applications/luci-app-attendedsysupgrade/root/usr/share/luci/menu.d/luci-app-attendedsysupgrade.json | 28 | ||||
-rw-r--r-- | applications/luci-app-attendedsysupgrade/root/usr/share/rpcd/acl.d/luci-app-attendedsysupgrade.json (renamed from applications/luci-app-attendedsysupgrade/root/usr/share/rpcd/acl.d/attendedsysupgrade.json) | 11 |
2 files changed, 31 insertions, 8 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/luci-app-attendedsysupgrade.json index 7549319260..ec102e3dad 100644 --- a/applications/luci-app-attendedsysupgrade/root/usr/share/rpcd/acl.d/attendedsysupgrade.json +++ b/applications/luci-app-attendedsysupgrade/root/usr/share/rpcd/acl.d/luci-app-attendedsysupgrade.json @@ -1,6 +1,6 @@ { - "attendedsysupgrade": { - "description": "attended sysupgrade via rpcd and luci", + "luci-app-attendedsysupgrade": { + "description": "Grant UCI access to LuCI app attendedsysupgrade", "read": { "ubus": { "rpc-sys": [ @@ -12,7 +12,7 @@ "info" ], "uci": [ - "get", "set", "commit" + "get" ] }, "uci": [ @@ -23,6 +23,11 @@ "cgi-io": [ "upload" ], + "ubus": { + "uci": [ + "set", "commit" + ] + }, "uci": [ "attendedsysupgrade" ] |