diff --git a/files/usr/local/bin/snrlog b/files/usr/local/bin/snrlog index 7739122e..789a327f 100755 --- a/files/usr/local/bin/snrlog +++ b/files/usr/local/bin/snrlog @@ -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 diff --git a/files/www/cgi-bin/sysinfo.json b/files/www/cgi-bin/sysinfo.json index c624f9e0..14e3e3e3 100755 --- a/files/www/cgi-bin/sysinfo.json +++ b/files/www/cgi-bin/sysinfo.json @@ -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)