gluon-mesh-vpn-tunneldigger: fix luacheck warnings

This commit is contained in:
bobcanthelpyou 2019-06-17 00:26:30 +02:00 committed by Martin Weinelt
parent f67522bef3
commit 266e0aed38

View File

@ -2,12 +2,12 @@
local uci = require('simple-uci').cursor() local uci = require('simple-uci').cursor()
function restart_tunneldigger() local function restart_tunneldigger()
os.execute('logger -t tunneldigger-watchdog "Restarting Tunneldigger."') os.execute('logger -t tunneldigger-watchdog "Restarting Tunneldigger."')
os.execute('/etc/init.d/tunneldigger restart') os.execute('/etc/init.d/tunneldigger restart')
end end
function read_pid_file() local function read_pid_file()
local pid_file = io.open('/var/run/tunneldigger.mesh-vpn.pid', 'r') local pid_file = io.open('/var/run/tunneldigger.mesh-vpn.pid', 'r')
if not pid_file then if not pid_file then
return nil return nil
@ -17,7 +17,7 @@ function read_pid_file()
return pid return pid
end end
function has_mesh_vpn_neighbours() local function has_mesh_vpn_neighbours()
local handle = io.popen('batctl o', 'r') local handle = io.popen('batctl o', 'r')
if not handle then if not handle then
return false return false