autocore: sync with luci
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org> (cherry picked from commit c63b7ea4e5483fda32b8ff63f69c6ba6cd237e1b)
This commit is contained in:
parent
087ca72a8e
commit
be0d1b2827
@ -662,8 +662,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…
x
Reference in New Issue
Block a user