[PATCH] net: ifup: skip *-discover files for ifup -a

Sascha Hauer s.hauer at pengutronix.de
Mon Jun 23 00:14:36 PDT 2014


Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 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




More information about the barebox mailing list