mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-06 20:05:07 -05:00
test: fix 102-hwtimestamp test for new ethtool
New ethtool using netlink messages has a different output.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user