diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-06-23 10:00:07 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-06-23 10:05:40 +0200 |
commit | 40d89c49777081ea88818610a575813d8a08e5c5 (patch) | |
tree | e318c4de4e704fd00cbac9e7d47f591ba1903b58 | |
parent | b61f924334fa3f81894611bbd623bb26beb964b0 (diff) | |
download | barebox-40d89c49777081ea88818610a575813d8a08e5c5.tar.gz |
ifup: Add comment why xxx-discover files have to be skipped
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | net/ifup.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/ifup.c b/net/ifup.c index de0c5f8a31..adab683e96 100644 --- a/net/ifup.c +++ b/net/ifup.c @@ -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); |