9
0
Fork 0

ifup: Add comment why xxx-discover files have to be skipped

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2014-06-23 10:00:07 +02:00
parent b61f924334
commit 40d89c4977
1 changed files with 5 additions and 0 deletions

View File

@ -136,6 +136,11 @@ int ifup_all(unsigned flags)
while ((d = readdir(dir))) {
if (*d->d_name == '.')
continue;
/*
* Skip xxx-discover files since these are no
* network configuration files, but scripts to bring
* up network interface xxx.
*/
if (strstr(d->d_name, "-discover"))
continue;
ifup(d->d_name, flags);