summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2015-08-17 16:06:20 +0200
committerLubomir Rintel <lkundrak@v3.sk>2015-08-18 08:45:42 +0200
commitbafc26d008d7fad44d0dd0b53611c5ddc98fc04b (patch)
tree2cff8f0bf49ba52c1152d8697a2e8cc0a7f85f24 /data
parent9366bd7f90956478ffec0f35adac8dbb60823134 (diff)
downloadNetworkManager-bafc26d008d7fad44d0dd0b53611c5ddc98fc04b.tar.gz
udev-rules: one less useless use of cat
Diffstat (limited to 'data')
-rw-r--r--data/85-nm-unmanaged.rules4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/85-nm-unmanaged.rules b/data/85-nm-unmanaged.rules
index e4057dbe3e..6f80b13842 100644
--- a/data/85-nm-unmanaged.rules
+++ b/data/85-nm-unmanaged.rules
@@ -20,13 +20,13 @@ ENV{INTERFACE}=="vboxnet[0-9]*", ENV{NM_UNMANAGED}="1"
# Ethernet. No parent device (lives in /virtual/), no support for
# ethtool to identify the driver. They have their own MAC prefix that
# can not be changed.
-PROGRAM="/bin/cat %S%p/address", RESULT=="00:50:56:*", ENV{INTERFACE}=="vmnet[0-9]*", ENV{NM_UNMANAGED}="1"
+ATTR{address}=="00:50:56:*", ENV{INTERFACE}=="vmnet[0-9]*", ENV{NM_UNMANAGED}="1"
# Parallels Workstation host networking. Out-of-tree driver that looks like
# an ordinary Ethernet. No parent device (lives in /virtual/), no support for
# ethtool to identify the driver and the interface name is too generic.
# However, they have their own MAC prefix that can not be changed.
-PROGRAM="/bin/cat %S%p/address", RESULT=="00:1c:42:*", ENV{INTERFACE}=="vnic[0-9]*", ENV{NM_UNMANAGED}="1"
+ATTR{address}=="00:1c:42:*", ENV{INTERFACE}=="vnic[0-9]*", ENV{NM_UNMANAGED}="1"
# Virtual Ethernet device pair. Often used to communicate with a peer interface
# in another net namespace and managed by libvirt, Docker or the like.