From c67d2ddc2ce34bb2d985b3864706d2cf49e65b6c Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 31 Oct 2019 15:54:21 +0100 Subject: luci-base, luci-mod-system: replace luci/setReboot with fs.exec Signed-off-by: Jo-Philipp Wich --- modules/luci-base/root/usr/libexec/rpcd/luci | 6 ------ 1 file changed, 6 deletions(-) (limited to 'modules/luci-base/root/usr/libexec') 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 } } -- cgit v1.2.3