Skip to content
Snippets Groups Projects
Commit 266e0aed authored by bobcanthelpyou's avatar bobcanthelpyou Committed by Martin Weinelt
Browse files

gluon-mesh-vpn-tunneldigger: fix luacheck warnings

parent f67522be
No related branches found
No related tags found
No related merge requests found
...@@ -2,22 +2,22 @@ ...@@ -2,22 +2,22 @@
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
end end
local pid = pid_file:read('*l') local pid = pid_file:read('*l')
pid_file:close() pid_file:close()
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment