[PATCH] ifup: set serverip to provided value when doing dhcp
Sascha Hauer
s.hauer at pengutronix.de
Fri Mar 14 06:10:03 EDT 2014
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
net/ifup.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/net/ifup.c b/net/ifup.c
index 3b89ce1..7b63136 100644
--- a/net/ifup.c
+++ b/net/ifup.c
@@ -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]);
--
1.9.0
More information about the barebox
mailing list