summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2015-08-19 15:04:46 +0200
committerLubomir Rintel <lkundrak@v3.sk>2015-08-19 15:13:11 +0200
commit9a65f63cb9d9e857e04c79ee93b11abc3f0086e0 (patch)
tree1d80b31c64c2368d311e261052d3dbbc73f77194 /data
parent64e37a62498b17ddd2b14fe3a32af3195578434f (diff)
downloadNetworkManager-9a65f63cb9d9e857e04c79ee93b11abc3f0086e0.tar.gz
udev-rules: avoid ifname shell expansion
Diffstat (limited to 'data')
-rw-r--r--data/85-nm-unmanaged.rules2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/85-nm-unmanaged.rules b/data/85-nm-unmanaged.rules
index 6f80b13842..9d2ad7737b 100644
--- a/data/85-nm-unmanaged.rules
+++ b/data/85-nm-unmanaged.rules
@@ -7,7 +7,7 @@ ACTION!="add|change", GOTO="nm_unmanaged_end"
# Determine ID_NET_DRIVER if there's no ID_NET_DRIVER or DRIVERS (old udev?)
ENV{ID_NET_DRIVER}=="?*", GOTO="nm_unmanaged_driver"
DRIVERS=="?*", GOTO="nm_unmanaged_driver"
-PROGRAM="/bin/sh -c '/usr/sbin/ethtool -i $env{INTERFACE} |/bin/sed -n s/^driver:\ //p'", RESULT=="?*", ENV{ID_NET_DRIVER}="%c"
+PROGRAM="/bin/sh -c '/usr/sbin/ethtool -i $1 | /bin/sed -n s/^driver:\ //p' -- $env{INTERFACE}", RESULT=="?*", ENV{ID_NET_DRIVER}="%c"
LABEL="nm_unmanaged_driver"
# VirtualBox host networking. Out-of-tree driver that looks like an ordinary