Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
ffbs-gluon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
darkbit
ffbs-gluon
Commits
266e0aed
Commit
266e0aed
authored
5 years ago
by
bobcanthelpyou
Committed by
Martin Weinelt
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
gluon-mesh-vpn-tunneldigger: fix luacheck warnings
parent
f67522be
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
package/gluon-mesh-vpn-tunneldigger/files/usr/bin/tunneldigger-watchdog
+4
-4
4 additions, 4 deletions
...mesh-vpn-tunneldigger/files/usr/bin/tunneldigger-watchdog
with
4 additions
and
4 deletions
package/gluon-mesh-vpn-tunneldigger/files/usr/bin/tunneldigger-watchdog
+
4
−
4
View file @
266e0aed
...
...
@@ -2,22 +2,22 @@
local
uci
=
require
(
'simple-uci'
).
cursor
()
function
restart_tunneldigger
()
local
function
restart_tunneldigger
()
os.execute
(
'logger -t tunneldigger-watchdog "Restarting Tunneldigger."'
)
os.execute
(
'/etc/init.d/tunneldigger restart'
)
end
function
read_pid_file
()
local
function
read_pid_file
()
local
pid_file
=
io.open
(
'/var/run/tunneldigger.mesh-vpn.pid'
,
'r'
)
if
not
pid_file
then
return
nil
end
local
pid
=
pid_file
:
read
(
'*l'
)
local
pid
=
pid_file
:
read
(
'*l'
)
pid_file
:
close
()
return
pid
end
function
has_mesh_vpn_neighbours
()
local
function
has_mesh_vpn_neighbours
()
local
handle
=
io.popen
(
'batctl o'
,
'r'
)
if
not
handle
then
return
false
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment