From: Dobrica Pavlinusic Date: Fri, 19 Aug 2022 11:13:08 +0000 (+0200) Subject: find fibre interfaces using ethtool X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;ds=sidebyside;h=556c1902c7af8f73c2d969ad114ce033d2b6069c;p=gnt-info find fibre interfaces using ethtool --- diff --git a/net/ip-link-fibre b/net/ip-link-fibre new file mode 100755 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.*$/{}/" '