autocore: sync with luci feed
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit fda170cb76)
This commit is contained in:
parent
a94f9e1e9c
commit
9a5e24286d
@ -662,9 +662,8 @@ local methods = {
|
||||
getOnlineUsers = {
|
||||
call = function()
|
||||
local sys = require "luci.sys"
|
||||
local onlineusers = {}
|
||||
local onlineusers = sys.exec("cat /proc/net/arp | grep 'br-lan' | grep '0x2' | wc -l")
|
||||
|
||||
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