diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2020-06-18 15:25:18 +0200 |
---|---|---|
committer | Rafał Miłecki <rafal@milecki.pl> | 2020-09-10 17:35:07 +0200 |
commit | 96bb528ccce2623a6f3b791d8263b57e878813bc (patch) | |
tree | a4799b22d18f996eb56a5c9c2be495a74830dcda /modules/luci-mod-system/root/usr | |
parent | 77af092511f31e07b93d8b29935de4671543db7c (diff) |
luci-mod-system: use ubus method for reboot
It's more generic & convenient than hardcoding /sbin/reboot executable
path. procd provides "reboot" method since 2016.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'modules/luci-mod-system/root/usr')
-rw-r--r-- | modules/luci-mod-system/root/usr/share/rpcd/acl.d/luci-mod-system.json | 3 |
1 files changed, 2 insertions, 1 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 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" ] } } } |