9
0
Fork 0

net: ifup: Set current ethernet device when doing ifup

When doing an ifup set the current interface to the one just
brought up so that it is actually used.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2014-05-14 16:05:36 +02:00
parent e70492fac2
commit 75482a0663
1 changed files with 2 additions and 0 deletions

View File

@ -58,6 +58,8 @@ int ifup(const char *name, unsigned flags)
if (edev && edev->ipaddr && !(flags & IFUP_FLAG_FORCE))
return 0;
eth_set_current(edev);
env_push_context();
setenv("ip", "");