From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WyySx-0002zG-KR for barebox@lists.infradead.org; Mon, 23 Jun 2014 07:15:00 +0000 From: Sascha Hauer Date: Mon, 23 Jun 2014 09:14:36 +0200 Message-Id: <1403507676-29816-1-git-send-email-s.hauer@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH] net: ifup: skip *-discover files for ifup -a To: barebox@lists.infradead.org Signed-off-by: Sascha Hauer --- net/ifup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/ifup.c b/net/ifup.c index 2e59025..de0c5f8 100644 --- a/net/ifup.c +++ b/net/ifup.c @@ -136,6 +136,8 @@ int ifup_all(unsigned flags) while ((d = readdir(dir))) { if (*d->d_name == '.') continue; + if (strstr(d->d_name, "-discover")) + continue; ifup(d->d_name, flags); } -- 2.0.0 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox