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:
parent
e70492fac2
commit
75482a0663
|
@ -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", "");
|
||||
|
|
Loading…
Reference in New Issue