summaryrefslogtreecommitdiffstats
path: root/baseudev.py
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2009-10-29 14:21:38 -0500
committerDavid Lehman <dlehman@redhat.com>2009-10-30 10:38:51 -0500
commit447db7bf1f6c2fbb682040bc206fe1006fb54234 (patch)
tree3ba51cf4df3067dc4145966755974835da249b52 /baseudev.py
parentfd4c0109f69cfb64f65339595dc8ebefe56cd1b4 (diff)
downloadanaconda-447db7bf1f6c2fbb682040bc206fe1006fb54234.tar.gz
anaconda-447db7bf1f6c2fbb682040bc206fe1006fb54234.tar.xz
anaconda-447db7bf1f6c2fbb682040bc206fe1006fb54234.zip
Allow callers of udev_trigger to specify the action string.
Diffstat (limited to 'baseudev.py')
-rw-r--r--baseudev.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/baseudev.py b/baseudev.py
index af63c769e..76b14ccbb 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)