Tunneldigger Watchdog: rename handle_batctl to handle as requested

This commit is contained in:
Matthias P. Walther 2019-06-02 19:49:35 +02:00
parent 3258c36f1c
commit 03652f5fa2
No known key found for this signature in database
GPG Key ID: 16BA5AB30324A4AE

View File

@ -16,16 +16,16 @@ function read_pid_file()
end
function check_for_mesh_vpn_neighbours()
local handle_batctl = io.popen("batctl o", 'r')
if handle_batctl~=nil then
for line in handle_batctl:lines() do
local handle = io.popen("batctl o", 'r')
if handle~=nil then
for line in handle:lines() do
if line:find('mesh%-vpn') then
handle_batctl:close()
handle:close()
return true
end
end
end
handle_batctl:close()
handle:close()
return false
end