[PATCH] core: add driver name fixup code for Klink



At some point after udev 171, Klink tun/tap device stopped
playing nicely with NetworkManager forcing users to manually
issue dhclient/dhcpcd calls after klink startup.
The automatic configuration bails out inside net_add() with
the following message:

  <warn> /sys/devices/virtual/net/klink0: couldn't determine device driver; ignoring...

Klink is similar to EasyTether and a quirk for it is already
in place. This commit adds a quirk for klink which makes it
working out of the box again.

More on Klink at: http://www.faveset.com/klink
---
 src/nm-udev-manager.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/nm-udev-manager.c b/src/nm-udev-manager.c
index a485349..43b5dec 100644
--- a/src/nm-udev-manager.c
+++ b/src/nm-udev-manager.c
@@ -412,6 +412,8 @@ dev_get_attrs (GUdevDevice *udev_device,
                default:
                        if (g_str_has_prefix (ifname, "easytether"))
                                driver = "easytether";
+                       else if (g_str_has_prefix (ifname, "klink"))
+                               driver = "klink";
                        break;
                }
                
-- 
1.8.1.5



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