9
0
Fork 0

ifup: set serverip to provided value when doing dhcp

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2014-03-11 06:47:21 +01:00
parent ad0c989072
commit 81b4c03a2b
1 changed files with 3 additions and 0 deletions

View File

@ -95,6 +95,9 @@ int ifup(const char *name, unsigned flags)
ret = run_command("dhcp");
if (ret)
goto out;
ret = eth_set_param(dev, "serverip");
if (ret)
goto out;
} else if (!strcmp(ip, "static")) {
for (i = 0; i < ARRAY_SIZE(vars); i++) {
ret = eth_set_param(dev, vars[i]);