mirror of
https://github.com/AuxXxilium/eudev.git
synced 2025-01-24 16:10:11 +07:00
don't do RUN if "ignore_device" is given
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
This commit is contained in:
parent
f83cccb979
commit
f61f78a76e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user