From 2e4900eb43fe0687fb116e7defea4055b9c9b8a2 Mon Sep 17 00:00:00 2001 From: Rafał Miłecki Date: Fri, 11 Sep 2020 13:26:45 +0200 Subject: luci-mod-system: use new "rc" ubus object for init.d scripts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 [ reword commit description, convert system.js ] Signed-off-by: Christian Marangi --- .../root/usr/share/rpcd/acl.d/luci-mod-system.json | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'modules/luci-mod-system/root/usr/share/rpcd') 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" ] } } }, -- cgit v1.2.3