diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-03-11 06:47:21 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-03-14 11:09:48 +0100 |
commit | 81b4c03a2b4f97be5b18984db86a70ce2c5f6a99 (patch) | |
tree | 02760ca92abbbd6b4df7949d6b9062a8fc05771c /net | |
parent | ad0c989072b047910f6e9fb8eab656a7339b1c67 (diff) | |
download | barebox-81b4c03a2b4f97be5b18984db86a70ce2c5f6a99.tar.gz barebox-81b4c03a2b4f97be5b18984db86a70ce2c5f6a99.tar.xz |
ifup: set serverip to provided value when doing dhcp
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'net')
-rw-r--r-- | net/ifup.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ifup.c b/net/ifup.c index 3b89ce1bc2..7b63136296 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]); |