diff options
author | Nicholas Smith <nicholas@nbembedded.com> | 2020-12-14 11:39:09 +1000 |
---|---|---|
committer | Nicholas Smith <nicholas@nbembedded.com> | 2021-03-04 21:01:03 +1000 |
commit | d5c763ee1dc3f90ae3f493400895440f4082c4b4 (patch) | |
tree | f54d2472f897b4cf7cf69cb20d9207359f29f159 /applications/luci-app-watchcat/root/usr/share | |
parent | 0d1b09e33f38d5fb181ccc6ab97b716f25e97fa2 (diff) |
luci-app-watchcat: add support for new features and convert to JavaScript
Signed-off-by: Nicholas Smith <nicholas@nbembedded.com>
Diffstat (limited to 'applications/luci-app-watchcat/root/usr/share')
-rw-r--r-- | applications/luci-app-watchcat/root/usr/share/luci/menu.d/luci-app-watchcat.json | 8 | ||||
-rw-r--r-- | applications/luci-app-watchcat/root/usr/share/rpcd/acl.d/luci-app-watchcat.json | 9 |
2 files changed, 9 insertions, 8 deletions
diff --git a/applications/luci-app-watchcat/root/usr/share/luci/menu.d/luci-app-watchcat.json b/applications/luci-app-watchcat/root/usr/share/luci/menu.d/luci-app-watchcat.json index 80f141acd6..720c00509d 100644 --- a/applications/luci-app-watchcat/root/usr/share/luci/menu.d/luci-app-watchcat.json +++ b/applications/luci-app-watchcat/root/usr/share/luci/menu.d/luci-app-watchcat.json @@ -3,13 +3,11 @@ "title": "Watchcat", "order": 90, "action": { - "type": "cbi", - "path": "watchcat/watchcat", - "post": { "cbi.submit": true } + "type": "view", + "path": "watchcat" }, "depends": { - "acl": [ "luci-app-watchcat" ], - "uci": { "system": true } + "acl": [ "luci-app-watchcat" ] } } } diff --git a/applications/luci-app-watchcat/root/usr/share/rpcd/acl.d/luci-app-watchcat.json b/applications/luci-app-watchcat/root/usr/share/rpcd/acl.d/luci-app-watchcat.json index 29de34b6d3..ef306fab12 100644 --- a/applications/luci-app-watchcat/root/usr/share/rpcd/acl.d/luci-app-watchcat.json +++ b/applications/luci-app-watchcat/root/usr/share/rpcd/acl.d/luci-app-watchcat.json @@ -1,11 +1,14 @@ { "luci-app-watchcat": { - "description": "Grant UCI access for luci-app-watchcat", + "description": "Grant access to LuCI app watchcat", "read": { - "uci": [ "system" ] + "file": { + "/usr/bin/watchcat.sh": [ "exec" ] + }, + "uci": [ "watchcat" ] }, "write": { - "uci": [ "system" ] + "uci": [ "watchcat" ] } } } |