mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-06 11:55:06 -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=""
|
||||
for iface_path in /sys/class/net/*; do
|
||||
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"
|
||||
break
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user