- /* get node from db, delete it*/
- retval = udev_remove_device(&udev);
+ /* get node from db, remove db-entry, delete created node */
+ retval = udev_remove_device(&udev);
+ }
+
+ /* 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);
+ }
+ } else if (udev.type == DEV_DEVICE) {
+ if (strcmp(action, "add") == 0) {
+ /* wait for sysfs */
+ dbg("devices add");