From 836626260ab0b9bde6d10a3d50b6ba9d581e2d4e Mon Sep 17 00:00:00 2001 From: Van Waholtz Date: Sat, 9 May 2020 10:04:25 +0800 Subject: luci-app-hd-idle: convert to client side rendering Signed-off-by: Van Waholtz --- .../root/usr/share/luci/menu.d/luci-app-hd-idle.json | 5 ++--- .../luci-app-hd-idle/root/usr/share/rpcd/acl.d/luci-app-hd-idle.json | 3 +++ 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'applications/luci-app-hd-idle/root/usr') 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": { -- cgit v1.2.3