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
|
if (f) then
|
||||||
local oldpid = f:read("*number")
|
local oldpid = f:read("*number")
|
||||||
f:close()
|
f:close()
|
||||||
if (oldpid ~= nill and dir_exists("/proc/" .. oldpid)) then
|
if (oldpid ~= nil and dir_exists("/proc/" .. oldpid)) then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -300,7 +300,7 @@ local f = io.open(rssifile,"r")
|
||||||
if (f) then
|
if (f) then
|
||||||
local oldpid = f:read("*number")
|
local oldpid = f:read("*number")
|
||||||
f:close()
|
f:close()
|
||||||
if (oldpid ~= nill and dir_exists("/proc/" .. oldpid)) then
|
if (oldpid ~= nil and dir_exists("/proc/" .. oldpid)) then
|
||||||
os.remove(pidfile)
|
os.remove(pidfile)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
|
@ -88,7 +88,7 @@ info['node_details']['mesh_gateway']=aredn_info.getMeshGatewaySetting()
|
||||||
info['meshrf']={}
|
info['meshrf']={}
|
||||||
local radio=aredn_info.getMeshRadioDevice()
|
local radio=aredn_info.getMeshRadioDevice()
|
||||||
|
|
||||||
if ( radio ~= nill and radio ~= "" ) then
|
if ( radio ~= nil and radio ~= "" ) then
|
||||||
info['meshrf']['status']="on"
|
info['meshrf']['status']="on"
|
||||||
info['meshrf']['ssid']=aredn_info.getSSID()
|
info['meshrf']['ssid']=aredn_info.getSSID()
|
||||||
info['meshrf']['channel']=aredn_info.getChannel(radio)
|
info['meshrf']['channel']=aredn_info.getChannel(radio)
|
||||||
|
|
Loading…
Reference in New Issue