[PATCH 1/2] Allow callers of udev_trigger to specify the action string.

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

 



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

diff --git a/baseudev.py b/baseudev.py
index af63c76..76b14cc 100644
--- a/baseudev.py
+++ b/baseudev.py
@@ -127,8 +127,8 @@ 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"):
+    argv = ["trigger", "--action=%s" % action]
     if subsystem:
         argv.append("--subsystem-match=%s" % subsystem)
 
-- 
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