summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2019-08-16 13:22:09 +0200
committerLubomir Rintel <lkundrak@v3.sk>2019-08-16 14:03:46 +0200
commit27d380b70ea839c7badab420361e4e65e023e8e9 (patch)
tree47581d43e5915dde4529cc25279cb7aad7c87914 /data
parent3bca0661f42d97d1c7ee1fab22263b6c74edb088 (diff)
downloadNetworkManager-27d380b70ea839c7badab420361e4e65e023e8e9.tar.gz
data: fix the ID_NET_DRIVER udev rule
Systemd v243 is complaining about the wrong substitution there. That is sort of harmless, because systemd-udevd in that version doesn't need the rule anyway. But still fix it, to avoid a warning. Also, newer udevd's $PATH doesn't include sbin. That is also okay, because we don't need the rule to actually work there. But fix it anyway. https://bugzilla.redhat.com/show_bug.cgi?id=1740655
Diffstat (limited to 'data')
-rw-r--r--data/84-nm-drivers.rules2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/84-nm-drivers.rules b/data/84-nm-drivers.rules
index d246ef6ce9..e398cb9f2f 100644
--- a/data/84-nm-drivers.rules
+++ b/data/84-nm-drivers.rules
@@ -7,6 +7,6 @@ ACTION!="add|change", GOTO="nm_drivers_end"
# Determine ID_NET_DRIVER if there's no ID_NET_DRIVER or DRIVERS (old udev?)
ENV{ID_NET_DRIVER}=="?*", GOTO="nm_drivers_end"
DRIVERS=="?*", GOTO="nm_drivers_end"
-PROGRAM="/bin/sh -c 'ethtool -i $1 | sed -n s/^driver:\ //p' -- $env{INTERFACE}", RESULT=="?*", ENV{ID_NET_DRIVER}="%c"
+PROGRAM="/bin/sh -c '/usr/sbin/ethtool -i $$1 |/usr/bin/sed -n s/^driver:\ //p' -- $env{INTERFACE}", ENV{ID_NET_DRIVER}="%c"
LABEL="nm_drivers_end"