Add support for networking device notifications
authorMarcel Holtmann <marcel@holtmann.org>
Fri, 9 Jan 2009 19:30:17 +0000 (20:30 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 9 Jan 2009 19:30:17 +0000 (20:30 +0100)
src/connman.rules
src/udev.c

index 7a1b97a..05ec054 100644 (file)
@@ -1,6 +1,9 @@
 
 SUBSYSTEM=="rfkill", ENV{CONNMAN_TYPE}="rfkill"
 
+SUBSYSTEM=="net", KERNEL=="eth*", ENV{CONNMAN_TYPE}="ethernet"
+SUBSYSTEM=="net", KERNEL=="wlan*", ENV{CONNMAN_TYPE}="wifi"
+
 SUBSYSTEM=="net", DRIVERS=="hso", ENV{CONNMAN_TYPE}="hso"
 
 SUBSYSTEM=="tty", KERNEL=="noz[0-9]*", ENV{CONNMAN_TYPE}="nozomi"
index 44e09d5..d38abe6 100644 (file)
@@ -172,6 +172,8 @@ static void print_properties(struct udev_device *device, const char *prefix)
                                g_str_has_prefix(name, "ID_MODEM") == TRUE ||
                                g_str_equal(name, "ID_VENDOR") == TRUE ||
                                g_str_equal(name, "ID_MODEL") == TRUE ||
+                               g_str_equal(name, "INTERFACE") == TRUE ||
+                               g_str_equal(name, "IFINDEX") == TRUE ||
                                g_str_equal(name, "DEVNAME") == TRUE ||
                                g_str_equal(name, "DEVPATH") == TRUE)
                        connman_debug("%s%s = %s", prefix, name, value);