Re: connect to internet via android phone as usb-modem



I've reverted the udev usage and test now for 'easytether' when checking
for the driver and assign driver to 'easytether' if so. I've diff'ed vs
latest git, but tested vs 0.8.4 rc1 and it works fine for me.

Torsten

diff --git a/src/nm-udev-manager.c b/src/nm-udev-manager.c
index 853c4fe..f20fe78 100644
--- a/src/nm-udev-manager.c
+++ b/src/nm-udev-manager.c
@@ -385,8 +385,12 @@ device_creator (NMUdevManager *manager,
 	}
 
 	if (!driver) {
-		nm_log_warn (LOGD_HW, "%s: couldn't determine device driver; ignoring...", path);
-		goto out;
+                if (g_str_has_prefix (ifname), "easytether") {
+                        driver = "easytether";
+                } else {
+		        nm_log_warn (LOGD_HW, "%s: couldn't determine device driver; ignoring...", path);
+		        goto out;
+                }
 	}
 
 	ifindex = g_udev_device_get_sysfs_attr_as_int (udev_device, "ifindex");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]