udev-rules: one less useless use of cat
authorLubomir Rintel <lkundrak@v3.sk>
Mon, 17 Aug 2015 14:06:20 +0000 (16:06 +0200)
committerLubomir Rintel <lkundrak@v3.sk>
Tue, 18 Aug 2015 06:45:42 +0000 (08:45 +0200)
data/85-nm-unmanaged.rules

index e4057db..6f80b13 100644 (file)
@@ -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.