diff options
author | Kay Sievers <kay.sievers@suse.de> | 2005-11-07 16:00:41 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2005-11-07 16:00:41 +0100 |
commit | 271c2d7d26132858a3302208dfe1572aa9cbbd12 (patch) | |
tree | 8ba208b83a332981ce4ed624e025bfb21fb927ad /udev_event.c | |
parent | fc465079caefbbfb838019e3c2b86ffa3e889efa (diff) |
let NAME="" supress node creation, but do RUN keys
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'udev_event.c')
-rw-r--r-- | udev_event.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/udev_event.c b/udev_event.c index fae5a46597..b50fbf4c1d 100644 --- a/udev_event.c +++ b/udev_event.c @@ -73,13 +73,12 @@ int udev_process_event(struct udev_rules *rules, struct udevice *udev) sysfs_close_class_device(class_dev); return -1; } - if (udev->name[0] == '\0') { + if (udev->name[0] != '\0') { + /* create node, store in db */ + retval = udev_add_device(udev, class_dev); + } else { info("device node creation supressed"); - sysfs_close_class_device(class_dev); - return -1; } - /* create node, store in db */ - retval = udev_add_device(udev, class_dev); } else { dbg("no dev-file found"); udev_rules_get_run(rules, udev, class_dev, NULL); |