build: emulate nixio.sysinfo() on Darwin
This commit is contained in:
parent
859f99845e
commit
7d0134fedc
@ -26,3 +26,22 @@ end
|
||||
-- allow any password in local sdk
|
||||
local sys = require "luci.sys"
|
||||
sys.user.checkpasswd = function() return true end
|
||||
|
||||
-- dummy sysinfo on Darwin
|
||||
require "nixio"
|
||||
|
||||
if not nixio.sysinfo then
|
||||
function nixio.sysinfo()
|
||||
return {
|
||||
bufferram = 0,
|
||||
freehigh = 0,
|
||||
freeram = 0,
|
||||
freeswap = 0,
|
||||
loads = { 0.0, 0.0, 0.0 },
|
||||
mem_unit = 1024,
|
||||
procs = 0,
|
||||
sharedram = 0,
|
||||
totalhigh = 0
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user