Re: connect to internet via android phone as usb-modem
- From: Torsten Spindler <torsten canonical com>
- To: Dan Williams <dcbw redhat com>
- Cc: Networkmanager List <networkmanager-list gnome org>
- Subject: Re: connect to internet via android phone as usb-modem
- Date: Thu, 14 Apr 2011 19:36:30 +0200
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]