From 96bb528ccce2623a6f3b791d8263b57e878813bc Mon Sep 17 00:00:00 2001 From: Rafał Miłecki Date: Thu, 18 Jun 2020 15:25:18 +0200 Subject: luci-mod-system: use ubus method for reboot MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It's more generic & convenient than hardcoding /sbin/reboot executable path. procd provides "reboot" method since 2016. Signed-off-by: Rafał Miłecki --- modules/luci-mod-system/root/usr/share/rpcd/acl.d/luci-mod-system.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (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 b29ddb8f4e..38ff98dee6 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 @@ -160,7 +160,8 @@ "/sbin/reboot": [ "exec" ] }, "ubus": { - "file": [ "exec" ] + "file": [ "exec" ], + "system": [ "reboot" ] } } } -- cgit v1.2.3