diff options
Diffstat (limited to 'applications/luci-app-wol/root')
-rw-r--r-- | applications/luci-app-wol/root/usr/share/luci/menu.d/luci-app-wol.json | 10 | ||||
-rw-r--r-- | applications/luci-app-wol/root/usr/share/rpcd/acl.d/luci-app-wol.json | 16 |
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" ] + } + } + } +} |