summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-wol/root
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-01-26 22:48:20 +0100
committerJo-Philipp Wich <jo@mein.io>2020-01-26 22:48:20 +0100
commit40ee3fa3ce1742d625123be11f41df04cf353d7a (patch)
tree144118f66fa49e1ccf402a7fe34991c2a104cbd2 /applications/luci-app-wol/root
parentb34d08ca9ab3a4b9b09eeef7e1c234802e860a47 (diff)
luci-app-woll: convert to client side rendering
Also make the interface option mandatory Fixes: #3557 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-wol/root')
-rw-r--r--applications/luci-app-wol/root/usr/share/luci/menu.d/luci-app-wol.json10
-rw-r--r--applications/luci-app-wol/root/usr/share/rpcd/acl.d/luci-app-wol.json16
2 files changed, 26 insertions, 0 deletions
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" ]
+ }
+ }
+ }
+}