diff options
author | Kay Sievers <kay.sievers@suse.de> | 2006-04-05 22:29:33 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2006-04-05 22:29:33 +0200 |
commit | a4d5ca644ed8bc59274967c17981d7448a075c07 (patch) | |
tree | dab1bf1e0604a4469ca0d55a972b070e6b55b368 /udevstart.c | |
parent | 1017f139b311d7185f57f803c176f191e6d0ce3b (diff) |
merge device event handling and make database content available on "remove"
Diffstat (limited to 'udevstart.c')
-rw-r--r-- | udevstart.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/udevstart.c b/udevstart.c index e5ce7af030..0d9b4f4004 100644 --- a/udevstart.c +++ b/udevstart.c @@ -130,7 +130,6 @@ static int add_device(const char *devpath) /* override built-in sysfs device */ udev->dev = dev; strcpy(udev->action, "add"); - udev->devt = udev_device_get_devt(udev); if (strcmp(udev->dev->subsystem, "net") != 0) { udev->devt = udev_device_get_devt(udev); @@ -148,7 +147,7 @@ static int add_device(const char *devpath) goto exit; } if (udev->name[0] != '\0') - retval = udev_add_device(udev); + retval = udev_device_event(&rules, udev); else info("device node creation supressed"); |