net: have ipconfig not wait if no dev is available
commitcd7816d14953c8af910af5bb92f488b0b277e29d
authorGerlando Falauto <gerlando.falauto@keymile.com>
Mon, 19 Dec 2011 22:58:04 +0000 (19 22:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Dec 2011 19:09:15 +0000 (20 14:09 -0500)
tree39cdc61bbdd4110403a050f64b91ce2a64589180
parenta76c0adf60f6ca5ff3481992e4ea0383776b24d2
net: have ipconfig not wait if no dev is available

previous commit 3fb72f1e6e6165c5f495e8dc11c5bbd14c73385c
makes IP-Config wait for carrier on at least one network device.

Before waiting (predefined value 120s), check that at least one device
was successfully brought up. Otherwise (e.g. buggy bootloader
which does not set the MAC address) there is no point in waiting
for carrier.

Cc: Micha Nelissen <micha@neli.hopto.org>
Cc: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Gerlando Falauto <gerlando.falauto@keymile.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ipconfig.c