diff options
Diffstat (limited to 'applications/luci-app-dawn/root')
-rw-r--r-- | applications/luci-app-dawn/root/usr/share/luci/menu.d/luci-app-dawn.json | 30 | ||||
-rw-r--r-- | applications/luci-app-dawn/root/usr/share/rpcd/acl.d/luci-app-dawn.json | 6 |
2 files changed, 35 insertions, 1 deletions
diff --git a/applications/luci-app-dawn/root/usr/share/luci/menu.d/luci-app-dawn.json b/applications/luci-app-dawn/root/usr/share/luci/menu.d/luci-app-dawn.json new file mode 100644 index 0000000000..96e88db39e --- /dev/null +++ b/applications/luci-app-dawn/root/usr/share/luci/menu.d/luci-app-dawn.json @@ -0,0 +1,30 @@ +{ + "admin/dawn/": { + "title": "DAWN", + "order": 60, + "action": { + "type": "firstchild" + }, + "depends": { + "acl": [ "luci-app-dawn" ] + } + }, + + "admin/dawn/network_overview": { + "title": "Network Overview", + "order": 1, + "action": { + "type": "view", + "path": "dawn/network_overview" + } + }, + + "admin/dawn/hearing_map": { + "title": "Hearing Map", + "order": 2, + "action": { + "type": "view", + "path": "dawn/hearing_map" + } + } +} diff --git a/applications/luci-app-dawn/root/usr/share/rpcd/acl.d/luci-app-dawn.json b/applications/luci-app-dawn/root/usr/share/rpcd/acl.d/luci-app-dawn.json index 4fece64a86..5968c406a0 100644 --- a/applications/luci-app-dawn/root/usr/share/rpcd/acl.d/luci-app-dawn.json +++ b/applications/luci-app-dawn/root/usr/share/rpcd/acl.d/luci-app-dawn.json @@ -2,7 +2,11 @@ "luci-app-dawn": { "description": "Grant UCI access for luci-app-dawn", "read": { - "uci": [ "dawn" ] + "uci": [ "dawn" ], + "ubus": { + "dawn": [ "get_network", "get_hearing_map" ], + "luci-rpc": [ "getHostHints" ] + } }, "write": { "uci": [ "dawn" ] |