summaryrefslogtreecommitdiff
path: root/udev_device.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2006-07-21 22:31:58 +0200
committerKay Sievers <kay.sievers@suse.de>2006-07-21 22:31:58 +0200
commitaa0b70530c1ab116216e53641f4ec3f481d654fe (patch)
tree74c77af2baaa8c0c845b09977a477695a10b3f00 /udev_device.c
parente8c335b60a69d150140cb2ea7c3e78a8ab2cca29 (diff)
use "change" instead of "online" events
The kernel driver may send "change" to signify a device state change and udev can possibly recreate symlinks.
Diffstat (limited to 'udev_device.c')
-rw-r--r--udev_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev_device.c b/udev_device.c
index 3c4ac913ed..ed41c856e5 100644
--- 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, "online") == 0)) {
+ (strcmp(udev->action, "add") == 0 || strcmp(udev->action, "change") == 0)) {
struct udevice *udev_old;
dbg("device node add '%s'", udev->dev->devpath);