projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8c335b
)
use "change" instead of "online" events
author
Kay Sievers
<kay.sievers@suse.de>
Fri, 21 Jul 2006 20:31:58 +0000
(22:31 +0200)
committer
Kay Sievers
<kay.sievers@suse.de>
Fri, 21 Jul 2006 20:31:58 +0000
(22:31 +0200)
The kernel driver may send "change" to signify a device state
change and udev can possibly recreate symlinks.
udev_device.c
patch
|
blob
|
history
diff --git
a/udev_device.c
b/udev_device.c
index
3c4ac91
..
ed41c85
100644
(file)
--- a/
udev_device.c
+++ b/
udev_device.c
@@
-147,7
+147,7
@@
int udev_device_event(struct udev_rules *rules, struct udevice *udev)
/* add device node */
if (major(udev->devt) != 0 &&
- (strcmp(udev->action, "add") == 0 || strcmp(udev->action, "
onlin
e") == 0)) {
+ (strcmp(udev->action, "add") == 0 || strcmp(udev->action, "
chang
e") == 0)) {
struct udevice *udev_old;
dbg("device node add '%s'", udev->dev->devpath);