diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-10-31 15:54:21 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-11-01 12:03:33 +0100 |
commit | c67d2ddc2ce34bb2d985b3864706d2cf49e65b6c (patch) | |
tree | 07d496f42dc26edbeca75e7f8fa392e5ef35aa08 /modules/luci-base/root | |
parent | 6e633b3ed29edcbe6ce8d0bafaf064fe2e6c2c03 (diff) |
luci-base, luci-mod-system: replace luci/setReboot with fs.exec
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/root')
-rwxr-xr-x | modules/luci-base/root/usr/libexec/rpcd/luci | 6 | ||||
-rw-r--r-- | modules/luci-base/root/usr/share/rpcd/acl.d/luci-base.json | 2 |
2 files changed, 1 insertions, 7 deletions
diff --git a/modules/luci-base/root/usr/libexec/rpcd/luci b/modules/luci-base/root/usr/libexec/rpcd/luci index 4eb62d2152..f200ee5f4f 100755 --- a/modules/luci-base/root/usr/libexec/rpcd/luci +++ b/modules/luci-base/root/usr/libexec/rpcd/luci @@ -524,12 +524,6 @@ local methods = { local util = require "luci.util" return { result = (os.execute(string.format("/bin/umount %s", util.shellquote(args.path))) == 0) } end - }, - - setReboot = { - call = function() - return { result = (os.execute("/sbin/reboot >/dev/null 2>&1") == 0) } - end } } diff --git a/modules/luci-base/root/usr/share/rpcd/acl.d/luci-base.json b/modules/luci-base/root/usr/share/rpcd/acl.d/luci-base.json index d801f0168f..51a7860dea 100644 --- a/modules/luci-base/root/usr/share/rpcd/acl.d/luci-base.json +++ b/modules/luci-base/root/usr/share/rpcd/acl.d/luci-base.json @@ -69,7 +69,7 @@ "ubus": { "file": [ "write", "remove", "exec" ], "iwinfo": [ "scan" ], - "luci": [ "setInitAction", "setLocaltime", "setPassword", "setBlockDetect", "setUmount", "setReboot" ], + "luci": [ "setInitAction", "setLocaltime", "setPassword", "setBlockDetect", "setUmount" ], "uci": [ "add", "apply", "confirm", "delete", "order", "set", "rename" ] }, "uci": [ "*" ] |