- udev_add_device(&udev, class_dev);
- if (udev.devname[0] != '\0')
- setenv("DEVNAME", udev.devname, 1);
-run:
- if (udev_run && !list_empty(&udev.run_list)) {
- struct name_entry *name_loop;
-
- dbg("executing run list");
- list_for_each_entry(name_loop, &udev.run_list, node) {
- if (strncmp(name_loop->name, "socket:", strlen("socket:")) == 0)
- pass_env_to_socket(&name_loop->name[strlen("socket:")], devpath, "add");
- else
- run_program(name_loop->name, udev.subsystem, NULL, 0, NULL, (udev_log_priority >= LOG_DEBUG));
- }
- }
-exit:
- sysfs_close_class_device(class_dev);
- udev_cleanup_device(&udev);