From abe319eb12d7a2d2b6063436dbe161cc2a383aa1 Mon Sep 17 00:00:00 2001 From: "Matthias P. Walther" Date: Sun, 2 Jun 2019 15:41:12 +0200 Subject: [PATCH] Tunneldigger Watchdoch: Fix indentation --- .../files/usr/bin/tunneldigger-watchdog | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/package/gluon-mesh-vpn-tunneldigger/files/usr/bin/tunneldigger-watchdog b/package/gluon-mesh-vpn-tunneldigger/files/usr/bin/tunneldigger-watchdog index 45107331..87877ab3 100755 --- a/package/gluon-mesh-vpn-tunneldigger/files/usr/bin/tunneldigger-watchdog +++ b/package/gluon-mesh-vpn-tunneldigger/files/usr/bin/tunneldigger-watchdog @@ -17,16 +17,16 @@ end function getNeighbourCount() local handleBatctl = io.popen("batctl o", 'r') - if handleBatctl~=nil then - for line in handleBatctl:lines() do - if line:find('mesh%-vpn') then + if handleBatctl~=nil then + for line in handleBatctl:lines() do + if line:find('mesh%-vpn') then handleBatctl.close() - return 1 - end - end - end + return 1 + end + end + end handleBatctl.close() - return nil + return nil end local uci = require('simple-uci').cursor() @@ -36,9 +36,9 @@ if uci:get_bool('tunneldigger', 'mesh_vpn', 'enabled') then restartTunneldigger() return end - if getNeighbourCount() ~= 1 then + if getNeighbourCount() ~= 1 then io.popen('logger -t tunneldigger-watchdog "No vpn-mesh neighbours found."') restartTunneldigger() return - end + end end