[osinfo PATCH] Use ENV{} in udev rule

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There are only a handful of key names that can be directly assigned
in an udev rule (through FOO=....), for device-specific properties,
ENV{FOO} must be used.
---
 data/95-osinfo.rules.in |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/data/95-osinfo.rules.in b/data/95-osinfo.rules.in
index 86ff740..33e5986 100644
--- a/data/95-osinfo.rules.in
+++ b/data/95-osinfo.rules.in
@@ -26,16 +26,16 @@ ACTION=="change", \
 ACTION=="change", \
  SUBSYSTEM=="block", \
  ENV{ID_FS_TYPE}!="iso9660", \
- OSINFO_BOOTABLE="", \
- OSINFO_INSTALLER="", \
- OSINFO_LIVE="", \
- OSINFO_MEDIA=""
+ ENV{OSINFO_BOOTABLE}="", \
+ ENV{OSINFO_INSTALLER}="", \
+ ENV{OSINFO_LIVE}="", \
+ ENV{OSINFO_MEDIA}=""
 
 ACTION=="change", \
  SUBSYSTEM=="block", \
  ENV{ID_FS_TYPE}!="udf", \
- OSINFO_BOOTABLE="", \
- OSINFO_INSTALLER="", \
- OSINFO_LIVE="", \
- OSINFO_MEDIA=""
+ ENV{OSINFO_BOOTABLE}="", \
+ ENV{OSINFO_INSTALLER}="", \
+ ENV{OSINFO_LIVE}="", \
+ ENV{OSINFO_MEDIA}=""
 
-- 
1.7.7.6


[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux