summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2006-06-14 18:12:01 +0200
committerKay Sievers <kay.sievers@suse.de>2006-06-14 18:12:01 +0200
commit3c9e5740eb326de81f9611a8b77ae843700b0a81 (patch)
tree01b7224e80c7efd542138ab7f17b2174c0c6ab29
parentfa33d857e2cdd65d3de2f88021ecacf167fc21f0 (diff)
allow "online" events to create/update symlinks
-rw-r--r--udev_device.c3
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);