#include <sys/stat.h>
#include "logging.h"
+#include "udev_version.h"
#include "libsysfs/sysfs/libsysfs.h"
#ifdef LOG
}
#endif
-#define WAIT_MAX_SECONDS 5
+#define WAIT_MAX_SECONDS 10
#define WAIT_LOOP_PER_SECOND 20
/* wait for specific file to show up, normally the "dev"-file */
{ .subsystem = "misc", .device = NULL },
{ .subsystem = "msr", .device = NULL },
{ .subsystem = "netlink", .device = NULL },
- { .subsystem = "net", .device = NULL },
+ { .subsystem = "net", .device = "sit" },
+ { .subsystem = "net", .device = "ppp" },
+ { .subsystem = "net", .device = "lo" },
+ { .subsystem = "net", .device = "tap" },
{ .subsystem = "sound", .device = NULL },
{ .subsystem = "printer", .device = "lp" },
{ .subsystem = "nvidia", .device = NULL },
- { .subsystem = "video4linux", .device = NULL },
+ { .subsystem = "video4linux", .device = "vbi" },
{ .subsystem = "lirc", .device = NULL },
{ .subsystem = "firmware", .device = NULL },
{ .subsystem = "drm", .device = NULL },
{ .subsystem = "ieee1394", .device = NULL },
{ .subsystem = "ieee1394_host", .device = NULL },
{ .subsystem = "ieee1394_node", .device = NULL },
+ { .subsystem = "raw", .device = NULL },
{ NULL, NULL }
};
struct class_device *classdevice;
if (rc == 0)
dbg("result: waiting for sysfs successful '%s'", devpath);
else
- info("error: wait_for_sysfs needs an update to handle the device '%s' "
- "properly, please report to <linux-hotplug-devel@lists.sourceforge.net>",
- devpath);
+ info("either wait_for_sysfs (udev %s) needs an update to handle the device '%s' "
+ "properly (%d) or the sysfs-support of your device's driver needs to be fixed, "
+ "please report to <linux-hotplug-devel@lists.sourceforge.net>",
+ UDEV_VERSION, devpath, rc);
return rc;
}