+ devpath = get_devpath();
+ if (!devpath) {
+ dbg ("no devpath?");
+ goto exit;
+ }
+ dbg("looking at '%s'", devpath);
+
+ /* we only care about class devices and block stuff */
+ if (!strstr(devpath, "class") &&
+ !strstr(devpath, "block")) {
+ dbg("not a block or class device");
+ goto exit;
+ }
+
+ /* but we don't care about net class devices */
+ if (strcmp(subsystem, "net") == 0) {
+ dbg("don't care about net devices");
+ goto exit;
+ }
+