Tunneldigger Watchdoch: Fix indentation
This commit is contained in:
parent
31e86c9665
commit
abe319eb12
@ -17,16 +17,16 @@ end
|
|||||||
|
|
||||||
function getNeighbourCount()
|
function getNeighbourCount()
|
||||||
local handleBatctl = io.popen("batctl o", 'r')
|
local handleBatctl = io.popen("batctl o", 'r')
|
||||||
if handleBatctl~=nil then
|
if handleBatctl~=nil then
|
||||||
for line in handleBatctl:lines() do
|
for line in handleBatctl:lines() do
|
||||||
if line:find('mesh%-vpn') then
|
if line:find('mesh%-vpn') then
|
||||||
handleBatctl.close()
|
handleBatctl.close()
|
||||||
return 1
|
return 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
handleBatctl.close()
|
handleBatctl.close()
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
|
||||||
local uci = require('simple-uci').cursor()
|
local uci = require('simple-uci').cursor()
|
||||||
@ -36,9 +36,9 @@ if uci:get_bool('tunneldigger', 'mesh_vpn', 'enabled') then
|
|||||||
restartTunneldigger()
|
restartTunneldigger()
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if getNeighbourCount() ~= 1 then
|
if getNeighbourCount() ~= 1 then
|
||||||
io.popen('logger -t tunneldigger-watchdog "No vpn-mesh neighbours found."')
|
io.popen('logger -t tunneldigger-watchdog "No vpn-mesh neighbours found."')
|
||||||
restartTunneldigger()
|
restartTunneldigger()
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user