Tunneldigger Watchdog: rename handle_batctl to handle as requested
This commit is contained in:
parent
3258c36f1c
commit
03652f5fa2
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user