diff options
author | Kay Sievers <kay.sievers@suse.de> | 2006-06-14 18:12:01 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2006-06-14 18:12:01 +0200 |
commit | 3c9e5740eb326de81f9611a8b77ae843700b0a81 (patch) | |
tree | 01b7224e80c7efd542138ab7f17b2174c0c6ab29 /udev_device.c | |
parent | fa33d857e2cdd65d3de2f88021ecacf167fc21f0 (diff) |
allow "online" events to create/update symlinks
Diffstat (limited to 'udev_device.c')
-rw-r--r-- | udev_device.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/udev_device.c b/udev_device.c index a7a8b13c96..ab4965c3a1 100644 --- a/udev_device.c +++ b/udev_device.c @@ -114,7 +114,8 @@ int udev_device_event(struct udev_rules *rules, struct udevice *udev) int retval = 0; /* add device node */ - if (major(udev->devt) != 0 && strcmp(udev->action, "add") == 0) { + if (major(udev->devt) != 0 && + (strcmp(udev->action, "add") == 0 || strcmp(udev->action, "online") == 0)) { struct udevice *udev_old; dbg("device node add '%s'", udev->dev->devpath); |