Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFS Gluon Packages
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
firmware
FFS Gluon Packages
Commits
6bc7264a
Commit
6bc7264a
authored
Jul 8, 2024
by
autinerd
Browse files
Options
Downloads
Patches
Plain Diff
ffs-set-segment: Fix some typos in util.lua
parent
a46a57f5
Branches
Branches containing commit
No related tags found
1 merge request
!3
ffs-set-segment: Fix some typos in util.lua
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ffs-set-segment/luasrc/usr/lib/lua/ffs-set-segment/util.lua
+3
-3
3 additions, 3 deletions
ffs-set-segment/luasrc/usr/lib/lua/ffs-set-segment/util.lua
with
3 additions
and
3 deletions
ffs-set-segment/luasrc/usr/lib/lua/ffs-set-segment/util.lua
+
3
−
3
View file @
6bc7264a
...
...
@@ -34,9 +34,9 @@ end
function
M
.
lock
(
lockfilename
)
local
lockfd
,
err
=
fcntl
.
open
(
lockfilename
,
bit
.
bor
(
fcntl
.
O_WRONLY
,
fcntl
.
O_CREAT
),
384
)
-- mode 0600
if
not
lockfd
then
autil
.
log
(
'err'
,
err
)
M
.
log
(
'err'
,
err
)
local
err_verbose
=
string.format
(
"Unable to get file descriptor for lock file %s ."
,
lockfilename
)
autil
.
log
(
'err'
,
err_verbose
)
M
.
log
(
'err'
,
err_verbose
)
os.exit
(
1
)
end
...
...
@@ -148,7 +148,7 @@ function M.get_segment_from_dns(nodeid, pubkey)
end
function
M
.
get_segment_from_batman
()
local
gwl
=
json
.
parse
(
execute
(
"batctl meshif bat0 gateways_json"
,
"r"
))
local
gwl
=
json
.
parse
(
execute
(
"batctl meshif bat0 gateways_json"
))
if
not
gwl
then
return
nil
end
...
...
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