From: Roy Marples Date: Thu, 15 Oct 2009 07:32:49 +0000 (+0000) Subject: Only work with ethernet by default so firewire does not slow down the boot. X-Git-Tag: v5.1.2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9579be23a9858f448bca3676accdfd048981c600;p=thirdparty%2Fdhcpcd.git Only work with ethernet by default so firewire does not slow down the boot. --- diff --git a/net.c b/net.c index 4d693494..a45951cc 100644 --- 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;