projects
/
gnt-info
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d7e762f
)
find fibre interfaces using ethtool
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Fri, 19 Aug 2022 11:13:08 +0000
(13:13 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Fri, 19 Aug 2022 11:13:21 +0000
(13:13 +0200)
net/ip-link-fibre
[new file with mode: 0755]
patch
|
blob
diff --git a/net/ip-link-fibre
b/net/ip-link-fibre
new file mode 100755
(executable)
index 0000000..
da214a6
--- /dev/null
+++ b/
net/ip-link-fibre
@@ -0,0
+1
@@
+ip link | grep UP | grep ' e[^ ]*:' | grep -v @ | cut -d: -f2 | xargs -i sh -c 'ethtool {} | grep FIBRE | sed "s/^.*FIBRE.*$/{}/" '