Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

automatic detection of virtual net devices added

  • Loading branch information...
commit 5935f8b286c0b613b46b6b551b0a07600c32b835 1 parent b5e4b2d
@tuxcodejohn tuxcodejohn authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 getinfo.lua
View
5 getinfo.lua
@@ -19,9 +19,8 @@ function interfaces()
f:close()
local ret = {}
for w in string.gfind(out, "%w+") do
- if not ( string.find(w,"lo") or
- string.find(w, "dummy%d+") )
- then
+ f,emsg,enum = io.open("/sys/class/net/".. w .. "/device" ,"r")
+ if (enum ~= 2 ) then
table.insert(ret, w)
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.