]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Only work with ethernet by default so firewire does not slow down the boot.
authorRoy Marples <roy@marples.name>
Thu, 15 Oct 2009 07:32:49 +0000 (07:32 +0000)
committerRoy Marples <roy@marples.name>
Thu, 15 Oct 2009 07:32:49 +0000 (07:32 +0000)
net.c

diff --git a/net.c b/net.c
index 4d6934949c2a20e8445470179c905f1d59d0d34b..a45951cce926dd6ea5dad6ff06186d8ef3537e1e 100644 (file)
--- a/net.c
+++ b/net.c
@@ -427,19 +427,17 @@ discover_interfaces(int argc, char * const *argv)
 #endif
                }
 
-               if (!(ifp->flags & IFF_POINTOPOINT)) {
-                       switch(ifp->family) {
-                       case ARPHRD_ETHER: /* FALLTHROUGH */
-                       case ARPHRD_IEEE1394:
-                               break;
-                       default:
-                               if (argc == 0 && ifac == 0) {
-                                       free_interface(ifp);
-                                       continue;
-                               }
+               /* We only work on ethernet by default */
+               if (!(ifp->flags & IFF_POINTOPOINT) &&
+                   ifp->family != ARPHRD_ETHER)
+               {
+                       if (argc == 0 && ifac == 0) {
+                               free_interface(ifp);
+                               continue;
+                       }
+                       if (ifp->family != ARPHRD_IEEE1394)
                                syslog(LOG_WARNING,
                                    "%s: unknown hardware family", p);
-                       }
                }
                if (ifl)
                        ifl->next = ifp;