summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base
diff options
context:
space:
mode:
Diffstat (limited to 'modules/luci-base')
-rwxr-xr-xmodules/luci-base/root/usr/libexec/rpcd/luci34
-rw-r--r--modules/luci-base/root/usr/share/rpcd/acl.d/luci-base.json2
2 files changed, 1 insertions, 35 deletions
diff --git a/modules/luci-base/root/usr/libexec/rpcd/luci b/modules/luci-base/root/usr/libexec/rpcd/luci
index ab6a7ecfee..b8243b8272 100755
--- a/modules/luci-base/root/usr/libexec/rpcd/luci
+++ b/modules/luci-base/root/usr/libexec/rpcd/luci
@@ -479,40 +479,6 @@ local methods = {
end
return { result = hostname:gsub("\n$", "") }
end
- },
-
- getTTYDevices = {
- args = { with_cdc = false, with_tts = true },
- call = function(args)
- local fs = require "nixio.fs"
- local iter = fs.glob("/dev/tty[A-Z]*")
- local rv = {}
- if iter then
- local node
- for node in iter do
- rv[#rv+1] = node
- end
- end
- if args.with_tts then
- iter = fs.glob("/dev/tts/*")
- if iter then
- local node
- for node in iter do
- rv[#rv+1] = node
- end
- end
- end
- if args.with_cdc then
- iter = fs.glob("/dev/cdc-wdm*")
- if iter then
- local node
- for node in iter do
- rv[#rv+1] = node
- end
- end
- end
- return { result = rv }
- 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 d05ba841e4..417296a394 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
@@ -27,7 +27,7 @@
"ubus": {
"file": [ "list", "stat" ],
"iwinfo": [ "assoclist", "freqlist", "txpowerlist", "countrylist" ],
- "luci": [ "getBoardJSON", "getDUIDHints", "getHostHints", "getIfaddrs", "getInitList", "getLocaltime", "getTimezones", "getDHCPLeases", "getLEDs", "getNetworkDevices", "getUSBDevices", "getHostname", "getTTYDevices", "getWirelessDevices" ],
+ "luci": [ "getBoardJSON", "getDUIDHints", "getHostHints", "getIfaddrs", "getInitList", "getLocaltime", "getTimezones", "getDHCPLeases", "getLEDs", "getNetworkDevices", "getUSBDevices", "getHostname", "getWirelessDevices" ],
"network.device": [ "status" ],
"network.interface": [ "dump" ],
"network": [ "get_proto_handlers" ],