chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5853b4
)
[PATCH] handle the subsytem if provided in udevtest.
author
greg@kroah.com
<greg@kroah.com>
Fri, 2 Apr 2004 05:46:07 +0000
(21:46 -0800)
committer
Greg KH
<gregkh@suse.de>
Wed, 27 Apr 2005 04:35:14 +0000
(21:35 -0700)
this is needed to test the /etc/dev.d/ stuff properly.
udevtest.c
patch
|
blob
|
history
diff --git
a/udevtest.c
b/udevtest.c
index 67ae9cc98f4694dafd8c87f2f037f006035027a8..36f223e1e556b1099b14d49c53d8d83485d72593 100644
(file)
--- a/
udevtest.c
+++ b/
udevtest.c
@@
-57,7
+57,7
@@
int main(int argc, char *argv[], char *envp[])
{
char *devpath;
char temp[NAME_SIZE];
- char
subsystem[]
= "";
+ char
*subsystem
= "";
const int fake = 1;
main_argv = argv;
@@
-98,6
+98,9
@@
int main(int argc, char *argv[], char *envp[])
/* initialize the naming deamon */
namedev_init();
+ if (argv[2] != NULL)
+ subsystem = argv[2];
+
/* simulate node creation with fake flag */
udev_add_device(devpath, subsystem, fake);