...and disable old udev code by shorting it out in it's init() function. --- plugins/udev.c | 2 ++ plugins/udevng.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/plugins/udev.c b/plugins/udev.c index 02cc67a..38ddeea 100644 --- a/plugins/udev.c +++ b/plugins/udev.c @@ -366,6 +366,8 @@ static void udev_start(void) static int udev_init(void) { + return 0; + devpath_list = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free); if (devpath_list == NULL) { diff --git a/plugins/udevng.c b/plugins/udevng.c index 640a221..8721447 100644 --- a/plugins/udevng.c +++ b/plugins/udevng.c @@ -1607,6 +1607,7 @@ static void enumerate_devices(struct udev *context) device = udev_device_new_from_syspath(context, syspath); if (device != NULL) { check_device(device); + add_legacy_device(device); udev_device_unref(device); } @@ -1659,6 +1660,7 @@ static gboolean udev_event(GIOChannel *channel, GIOCondition cond, g_source_remove(udev_delay); check_device(device); + add_legacy_device(device); udev_delay = g_timeout_add_seconds(1, check_modem_list, NULL); } else if (g_str_equal(action, "remove") == TRUE) -- 2.9.3