FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 10-29-2009, 06:29 PM
David Lehman
 
Default Allow callers of udev_trigger to specify the action string.

---
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@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 05:58 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org