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
|
end
|
||||||
|
|
||||||
function check_for_mesh_vpn_neighbours()
|
function check_for_mesh_vpn_neighbours()
|
||||||
local handle_batctl = io.popen("batctl o", 'r')
|
local handle = io.popen("batctl o", 'r')
|
||||||
if handle_batctl~=nil then
|
if handle~=nil then
|
||||||
for line in handle_batctl:lines() do
|
for line in handle:lines() do
|
||||||
if line:find('mesh%-vpn') then
|
if line:find('mesh%-vpn') then
|
||||||
handle_batctl:close()
|
handle:close()
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
handle_batctl:close()
|
handle:close()
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user