[PATCH 1/2] Expand udev_trigger to allow attr filtering and action specification.

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

 



---
 baseudev.py |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/baseudev.py b/baseudev.py
index af63c76..818834f 100644
--- a/baseudev.py
+++ b/baseudev.py
@@ -127,9 +127,12 @@ def udev_settle(timeout=None):
 
     iutil.execWithRedirect("udevadm", argv, stderr="/dev/null", searchPath=1)
 
-def udev_trigger(subsystem=None):
-    argv = ["trigger"]
+def udev_trigger(subsystem=None, action="add", attr_nomatch=None):
+    argv = ["trigger", "--action=%s" % action]
     if subsystem:
         argv.append("--subsystem-match=%s" % subsystem)
 
+    if attr_nomatch:
+        argv.append("--attr-nomatch=%s" % attr_nomatch)
+
     iutil.execWithRedirect("udevadm", argv, stderr="/dev/null", searchPath=1)
-- 
1.6.2.5

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux