mirror of https://github.com/aredn/aredn.git
bug: fix nill typo (#88)
* bug: fix nill typo Fix typo (nill to nil) in pidfile test. * bug: fix nill typo Fix typo (nill to nil).
This commit is contained in:
parent
3de44d3830
commit
6cc379d647
|
@ -282,7 +282,7 @@ local f = io.open(pidfile,"r")
|
|||
if (f) then
|
||||
local oldpid = f:read("*number")
|
||||
f:close()
|
||||
if (oldpid ~= nill and dir_exists("/proc/" .. oldpid)) then
|
||||
if (oldpid ~= nil and dir_exists("/proc/" .. oldpid)) then
|
||||
return
|
||||
end
|
||||
end
|
||||
|
@ -300,7 +300,7 @@ local f = io.open(rssifile,"r")
|
|||
if (f) then
|
||||
local oldpid = f:read("*number")
|
||||
f:close()
|
||||
if (oldpid ~= nill and dir_exists("/proc/" .. oldpid)) then
|
||||
if (oldpid ~= nil and dir_exists("/proc/" .. oldpid)) then
|
||||
os.remove(pidfile)
|
||||
return
|
||||
end
|
||||
|
|
|
@ -88,7 +88,7 @@ info['node_details']['mesh_gateway']=aredn_info.getMeshGatewaySetting()
|
|||
info['meshrf']={}
|
||||
local radio=aredn_info.getMeshRadioDevice()
|
||||
|
||||
if ( radio ~= nill and radio ~= "" ) then
|
||||
if ( radio ~= nil and radio ~= "" ) then
|
||||
info['meshrf']['status']="on"
|
||||
info['meshrf']['ssid']=aredn_info.getSSID()
|
||||
info['meshrf']['channel']=aredn_info.getChannel(radio)
|
||||
|
|
Loading…
Reference in New Issue