summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-hd-idle/root/usr
diff options
context:
space:
mode:
authorVan Waholtz <vanwaholtz@gmail.com>2020-05-09 10:04:25 +0800
committerVan Waholtz <vanwaholtz@gmail.com>2020-05-11 22:07:06 +0800
commit836626260ab0b9bde6d10a3d50b6ba9d581e2d4e (patch)
treef3a5c260463c00c22ea1f7913f99632acb2695d8 /applications/luci-app-hd-idle/root/usr
parentdd749961957c6a18bd3a831f27f6fa8f55dbd2d3 (diff)
luci-app-hd-idle: convert to client side rendering
Signed-off-by: Van Waholtz <vanwaholtz@gmail.com>
Diffstat (limited to 'applications/luci-app-hd-idle/root/usr')
-rw-r--r--applications/luci-app-hd-idle/root/usr/share/luci/menu.d/luci-app-hd-idle.json5
-rw-r--r--applications/luci-app-hd-idle/root/usr/share/rpcd/acl.d/luci-app-hd-idle.json3
2 files changed, 5 insertions, 3 deletions
diff --git a/applications/luci-app-hd-idle/root/usr/share/luci/menu.d/luci-app-hd-idle.json b/applications/luci-app-hd-idle/root/usr/share/luci/menu.d/luci-app-hd-idle.json
index 3d84d19ee1..9868364ef2 100644
--- a/applications/luci-app-hd-idle/root/usr/share/luci/menu.d/luci-app-hd-idle.json
+++ b/applications/luci-app-hd-idle/root/usr/share/luci/menu.d/luci-app-hd-idle.json
@@ -3,9 +3,8 @@
"title": "HDD Idle",
"order": 60,
"action": {
- "type": "cbi",
- "path": "hd_idle",
- "post": { "cbi.submit": true }
+ "type": "view",
+ "path": "hd_idle"
},
"depends": {
"acl": [ "luci-app-hd-idle" ],
diff --git a/applications/luci-app-hd-idle/root/usr/share/rpcd/acl.d/luci-app-hd-idle.json b/applications/luci-app-hd-idle/root/usr/share/rpcd/acl.d/luci-app-hd-idle.json
index 0a48a9ad87..4aa2f2997e 100644
--- a/applications/luci-app-hd-idle/root/usr/share/rpcd/acl.d/luci-app-hd-idle.json
+++ b/applications/luci-app-hd-idle/root/usr/share/rpcd/acl.d/luci-app-hd-idle.json
@@ -2,6 +2,9 @@
"luci-app-hd-idle": {
"description": "Grant UCI access for luci-app-hd-idle",
"read": {
+ "file": {
+ "/dev": [ "list" ]
+ },
"uci": [ "hd-idle" ]
},
"write": {