From 5dc61be74636c9c643f83ed146545db07c3b20cd Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 9 Sep 2019 11:09:18 +0200 Subject: luci-base: replace luci/getHostname with generic file/read rpc operation Signed-off-by: Jo-Philipp Wich --- modules/luci-base/root/usr/libexec/rpcd/luci | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'modules/luci-base/root/usr/libexec/rpcd') diff --git a/modules/luci-base/root/usr/libexec/rpcd/luci b/modules/luci-base/root/usr/libexec/rpcd/luci index b8243b8272..850b159acf 100755 --- a/modules/luci-base/root/usr/libexec/rpcd/luci +++ b/modules/luci-base/root/usr/libexec/rpcd/luci @@ -468,17 +468,6 @@ local methods = { return rv end - }, - - getHostname = { - call = function() - local fs = require "nixio.fs" - local hostname, code, err = fs.readfile("/proc/sys/kernel/hostname") - if err then - return { error = err }, 1 - end - return { result = hostname:gsub("\n$", "") } - end } } -- cgit v1.2.3