autocore: sync with luci
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
parent
e0cb58f78f
commit
c63b7ea4e5
@ -667,8 +667,9 @@ local methods = {
|
||||
getOnlineUsers = {
|
||||
call = function()
|
||||
local sys = require "luci.sys"
|
||||
local onlineusers = sys.exec("cat /proc/net/arp | grep 'br-lan' | grep '0x2' | wc -l")
|
||||
local onlineusers = {}
|
||||
|
||||
onlineusers.onlineusers = sys.exec("cat /proc/net/arp | grep 'br-lan' | grep '0x2' | wc -l")
|
||||
return onlineusers
|
||||
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user