summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-wifischedule/root/usr/share
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-wifischedule/root/usr/share')
-rw-r--r--applications/luci-app-wifischedule/root/usr/share/luci/menu.d/luci-app-wifischedule.json9
-rw-r--r--applications/luci-app-wifischedule/root/usr/share/rpcd/acl.d/luci-app-wifischedule.json7
2 files changed, 15 insertions, 1 deletions
diff --git a/applications/luci-app-wifischedule/root/usr/share/luci/menu.d/luci-app-wifischedule.json b/applications/luci-app-wifischedule/root/usr/share/luci/menu.d/luci-app-wifischedule.json
new file mode 100644
index 0000000000..e88579e9f3
--- /dev/null
+++ b/applications/luci-app-wifischedule/root/usr/share/luci/menu.d/luci-app-wifischedule.json
@@ -0,0 +1,9 @@
+{
+ "admin/services/wifischedule": {
+ "title": "wifischedule",
+ "action": {
+ "type": "view",
+ "path": "wifischedule/wifischedule"
+ }
+ }
+}
diff --git a/applications/luci-app-wifischedule/root/usr/share/rpcd/acl.d/luci-app-wifischedule.json b/applications/luci-app-wifischedule/root/usr/share/rpcd/acl.d/luci-app-wifischedule.json
index df44e7c39e..dbef438e1b 100644
--- a/applications/luci-app-wifischedule/root/usr/share/rpcd/acl.d/luci-app-wifischedule.json
+++ b/applications/luci-app-wifischedule/root/usr/share/rpcd/acl.d/luci-app-wifischedule.json
@@ -2,7 +2,12 @@
"luci-app-wifischedule": {
"description": "Grant UCI access for luci-app-wifischedule",
"read": {
- "uci": [ "wifi_schedule" ]
+ "uci": [ "wifi_schedule" ],
+ "file": {
+ "/usr/bin/iwinfo": [ "read" ],
+ "/usr/bin/wifi_schedule.sh": ["exec", "read"],
+ "/sbin/wifi": ["read"]
+ }
},
"write": {
"uci": [ "wifi_schedule" ]