From 6cc379d6477e03d6c18cd92540d7f4ccbd2a1609 Mon Sep 17 00:00:00 2001 From: Steve AB7PA <69524416+ab7pa@users.noreply.github.com> Date: Tue, 6 Apr 2021 19:15:50 -0700 Subject: [PATCH] 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). --- files/usr/local/bin/snrlog | 4 ++-- files/www/cgi-bin/sysinfo.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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)