- /* run dev.d/ scripts if we're not instructed to ignore the event */
- if (udev.devname[0] != '\0') {
- setenv("DEVNAME", udev.devname, 1);
- dev_d_execute(&udev, DEVD_DIR, DEVD_SUFFIX);
- }
-
+ /* run dev.d/ scripts if we created/deleted a node or changed a netif name */
+ if (udev.devname[0] != '\0') {
+ setenv("DEVNAME", udev.devname, 1);
+ if (udev_dev_d)
+ udev_multiplex_directory(&udev, DEVD_DIR, DEVD_SUFFIX);