diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/connman.rules | 2 | ||||
-rw-r--r-- | src/udev.c | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/connman.rules b/src/connman.rules index 8a935cef..84b3b4b6 100644 --- a/src/connman.rules +++ b/src/connman.rules @@ -1,6 +1,8 @@ SUBSYSTEM=="net", DRIVERS=="hso", ENV{CONNMAN_TYPE}="hso" +SUBSYSTEM=="tty", KERNEL=="noz[0-9]*", ENV{CONNMAN_TYPE}="nozomi" + SUBSYSTEM=="tty", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1003", \ ENV{CONNMAN_TYPE}="huawei" @@ -100,10 +100,13 @@ static void add_device(struct udev_device *udev_device) if (type == NULL || interface == NULL) return; - if (g_str_equal(interface, "ttyUSB0") == FALSE) + if (g_str_equal(interface, "ttyUSB0") == FALSE && + g_str_equal(interface, "noz0") == FALSE) return; - if (g_str_equal(type, "huawei") == TRUE) + if (g_str_equal(type, "nozomi") == TRUE) + devtype = CONNMAN_DEVICE_TYPE_NOZOMI; + else if (g_str_equal(type, "huawei") == TRUE) devtype = CONNMAN_DEVICE_TYPE_HUAWEI; else if (g_str_equal(type, "novatel") == TRUE) devtype = CONNMAN_DEVICE_TYPE_NOVATEL; |