Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 9a20d51a36
Fetching contributors…

Cannot retrieve contributors at this time

executable file 21 lines (18 sloc) 0.421 kB
#!/usr/bin/lua
TC="~d/git/iproute2/tc/tc"
IFACE=os.getenv("IFACE")
tc=io.popen(string.format("%s -s class show dev %s",TC,IFACE),"r")
local l=""
while true do
local o = tc:read("*line")
if o == nil then
io.write(string.format("%s %s\n",l,o))
break
end
if string.sub(o,1,1) == ' ' then
l = string.format("%s\t%s",l,o)
else
io.write(string.format("%s\n",l))
l = o
end
end
Jump to Line
Something went wrong with that request. Please try again.