summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-system/root/usr/share/rpcd/acl.d/luci-mod-system.json
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2020-09-11 13:26:45 +0200
committerPaul Donald <itsascambutmailmeanyway@gmail.com>2023-12-30 23:38:19 +0000
commit2e4900eb43fe0687fb116e7defea4055b9c9b8a2 (patch)
treeaff5f1f41126366dafce0405ff85b5458a4d0776 /modules/luci-mod-system/root/usr/share/rpcd/acl.d/luci-mod-system.json
parent5802709bc68e7b173cd21f0a6b62e30a0925d530 (diff)
luci-mod-system: use new "rc" ubus object for init.d scripts
Convert startup.js and system.js to use the generic ubus rc method to handle /etc/init.d/ scripts for enable/disable/start/restart/reload/stop operation. Signed-off-by: Rafał Miłecki <rafal@milecki.pl> [ reword commit description, convert system.js ] Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Diffstat (limited to 'modules/luci-mod-system/root/usr/share/rpcd/acl.d/luci-mod-system.json')
-rw-r--r--modules/luci-mod-system/root/usr/share/rpcd/acl.d/luci-mod-system.json10
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/luci-mod-system/root/usr/share/rpcd/acl.d/luci-mod-system.json b/modules/luci-mod-system/root/usr/share/rpcd/acl.d/luci-mod-system.json
index 732a73a760..4fa39613b7 100644
--- a/modules/luci-mod-system/root/usr/share/rpcd/acl.d/luci-mod-system.json
+++ b/modules/luci-mod-system/root/usr/share/rpcd/acl.d/luci-mod-system.json
@@ -3,14 +3,16 @@
"description": "Grant access to system configuration",
"read": {
"ubus": {
- "luci": [ "getInitList", "getLEDs", "getTimezones", "getUSBDevices" ],
+ "luci": [ "getLEDs", "getTimezones", "getUSBDevices" ],
+ "rc": [ "list" ],
"system": [ "info" ]
},
"uci": [ "luci", "system" ]
},
"write": {
"ubus": {
- "luci": [ "setInitAction", "setLocaltime", "setPassword" ]
+ "luci": [ "setLocaltime", "setPassword" ],
+ "rc": [ "init" ],
},
"uci": [ "luci", "system" ]
}
@@ -61,7 +63,7 @@
},
"ubus": {
"file": [ "read" ],
- "luci": [ "getInitList" ]
+ "rc": [ "list" ]
}
},
"write": {
@@ -70,7 +72,7 @@
},
"ubus": {
"file": [ "write" ],
- "luci": [ "setInitAction" ]
+ "rc": [ "init" ]
}
}
},