From 40ee3fa3ce1742d625123be11f41df04cf353d7a Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 26 Jan 2020 22:48:20 +0100 Subject: luci-app-woll: convert to client side rendering Also make the interface option mandatory Fixes: #3557 Signed-off-by: Jo-Philipp Wich --- .../root/usr/share/luci/menu.d/luci-app-wol.json | 10 ++++++++++ .../root/usr/share/rpcd/acl.d/luci-app-wol.json | 16 ++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 applications/luci-app-wol/root/usr/share/luci/menu.d/luci-app-wol.json create mode 100644 applications/luci-app-wol/root/usr/share/rpcd/acl.d/luci-app-wol.json (limited to 'applications/luci-app-wol/root') diff --git a/applications/luci-app-wol/root/usr/share/luci/menu.d/luci-app-wol.json b/applications/luci-app-wol/root/usr/share/luci/menu.d/luci-app-wol.json new file mode 100644 index 000000000..ece51325f --- /dev/null +++ b/applications/luci-app-wol/root/usr/share/luci/menu.d/luci-app-wol.json @@ -0,0 +1,10 @@ +{ + "admin/services/wol": { + "title": "Wake on LAN", + "order": 90, + "action": { + "type": "view", + "path": "wol" + } + } +} diff --git a/applications/luci-app-wol/root/usr/share/rpcd/acl.d/luci-app-wol.json b/applications/luci-app-wol/root/usr/share/rpcd/acl.d/luci-app-wol.json new file mode 100644 index 000000000..62a1eb975 --- /dev/null +++ b/applications/luci-app-wol/root/usr/share/rpcd/acl.d/luci-app-wol.json @@ -0,0 +1,16 @@ +{ + "luci-app-wol": { + "description": "Grant access to wake-on-lan executables", + "read": { + "ubus": { + "luci-rpc": [ "getHostHints" ] + } + }, + "write": { + "file": { + "/usr/bin/etherwake": [ "exec" ], + "/usr/bin/wol": [ "exec" ] + } + } + } +} -- cgit v1.2.3