summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2006-01-24 03:03:42 +0100
committerKay Sievers <kay.sievers@suse.de>2006-01-24 03:03:42 +0100
commitf61f78a76e424e4ec8197bc52e08d19b2ce07236 (patch)
tree62ff43f08158dc96befa6be8d63e9a9c2a41ea8a
parentf83cccb9798d6ce70c6cc39d2100794813b3615b (diff)
don't do RUN if "ignore_device" is given
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
-rw-r--r--udev_device.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/udev_device.c b/udev_device.c
index 0325001428..781787ef4a 100644
--- a/udev_device.c
+++ b/udev_device.c
@@ -88,7 +88,7 @@ int udev_device_event(struct udev_rules *rules, struct udevice *udev)
udev_rules_get_name(rules, udev);
if (udev->ignore_device) {
info("device event will be ignored");
- return 0;
+ return -1;
}
/* create node, store in db */
if (udev->name[0] != '\0')
@@ -104,7 +104,7 @@ int udev_device_event(struct udev_rules *rules, struct udevice *udev)
udev_rules_get_run(rules, udev);
if (udev->ignore_device) {
info("device event will be ignored");
- return 0;
+ return -1;
}
/* get data from db, remove db-entry, delete node */
retval = udev_remove_device(udev);
@@ -117,8 +117,10 @@ int udev_device_event(struct udev_rules *rules, struct udevice *udev)
/* default devices */
udev_rules_get_run(rules, udev);
- if (udev->ignore_device)
+ if (udev->ignore_device) {
info("device event will be ignored");
+ return -1;
+ }
return retval;
}