- /* we only care about class devices and block stuff */
- if (!strstr(devpath, "class") &&
- !strstr(devpath, "block")) {
- info("not a block or class device");
- goto exit;
+ /* initialize the naming deamon */
+ udev_rules_init();
+
+ /* fill in values and test_run flag*/
+ udev_init_device(&udev, devpath, subsystem, "add");
+
+ /* skip subsystems without "dev", but handle net devices */
+ if (udev.type != DEV_NET && subsystem_expect_no_dev(udev.subsystem)) {
+ info("don't care about '%s' devices", udev.subsystem);
+ return 2;