Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFS Gluon
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
firmware
FFS Gluon
Commits
b38bd942
Commit
b38bd942
authored
8 years ago
by
Christof Schulze
Committed by
Matthias Schiffer
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
gluon-status-page-api: fix indentation of luasrc/lib/gluon/status-page/www/cgi-bin/interfaces
parent
8b63ac79
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-status-page-api/luasrc/lib/gluon/status-page/www/cgi-bin/interfaces
+4
-4
4 additions, 4 deletions
...e-api/luasrc/lib/gluon/status-page/www/cgi-bin/interfaces
with
4 additions
and
4 deletions
package/gluon-status-page-api/luasrc/lib/gluon/status-page/www/cgi-bin/interfaces
+
4
−
4
View file @
b38bd942
...
@@ -15,10 +15,10 @@ list = util.get_mesh_devices(uconn)
...
@@ -15,10 +15,10 @@ list = util.get_mesh_devices(uconn)
ubus
.
close
(
uconn
)
ubus
.
close
(
uconn
)
interfaces
=
{}
interfaces
=
{}
for
_
,
ifname
in
ipairs
(
list
)
do
for
_
,
ifname
in
ipairs
(
list
)
do
pcall
(
function
()
pcall
(
function
()
local
address
=
util
.
trim
(
fs
.
readfile
(
'/sys/class/net/'
..
ifname
..
'/address'
))
local
address
=
util
.
trim
(
fs
.
readfile
(
'/sys/class/net/'
..
ifname
..
'/address'
))
interfaces
[
ifname
]
=
{
address
=
address
}
interfaces
[
ifname
]
=
{
address
=
address
}
end
)
end
)
end
end
io.write
(
json
.
stringify
(
interfaces
))
io.write
(
json
.
stringify
(
interfaces
))
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