test: fix 102-hwtimestamp test for new ethtool
New ethtool using netlink messages has a different output.
This commit is contained in:
parent
571359b366
commit
4cf6b29397
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@
|
||||||
hwts_iface=""
|
hwts_iface=""
|
||||||
for iface_path in /sys/class/net/*; do
|
for iface_path in /sys/class/net/*; do
|
||||||
iface=$(basename "$iface_path")
|
iface=$(basename "$iface_path")
|
||||||
if ethtool -T "$iface" 2> /dev/null | grep -q HWTSTAMP_FILTER_ALL; then
|
if ethtool -T "$iface" 2> /dev/null | grep -q ' all\($\| \)'; then
|
||||||
hwts_iface="$iface"
|
hwts_iface="$iface"
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue