summaryrefslogtreecommitdiffstats
path: root/commands/net.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2010-07-03 10:26:21 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2010-07-03 10:26:21 +0200
commit6d1d9e8d8b4be5645d3613522093cdcaddad5bff (patch)
treef0147f6620fc6bce6b403f9e9c006e629ae6796f /commands/net.c
parent0db4be97f2ebd6cedad9c113ca49667c0b1e8d75 (diff)
parent7f5644fad10f8f7a86742dd30d2812261cd0a623 (diff)
downloadbarebox-6d1d9e8d8b4be5645d3613522093cdcaddad5bff.tar.gz
barebox-6d1d9e8d8b4be5645d3613522093cdcaddad5bff.tar.xz
Merge branch 'next'
Diffstat (limited to 'commands/net.c')
-rw-r--r--commands/net.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/commands/net.c b/commands/net.c
index 815a566a2b..938463c7c4 100644
--- a/commands/net.c
+++ b/commands/net.c
@@ -35,44 +35,6 @@
#include <errno.h>
#include <libbb.h>
-void netboot_update_env(void)
-{
- struct eth_device *eth_current = eth_get_current();
- char tmp[22];
-
- if (NetOurGatewayIP)
- dev_set_param_ip(&eth_current->dev, "gateway", NetOurGatewayIP);
-
- if (NetOurSubnetMask)
- dev_set_param_ip(&eth_current->dev, "netmask", NetOurSubnetMask);
-
-
- if (NetOurHostName[0])
- setenv ("hostname", NetOurHostName);
-
- if (NetOurRootPath[0])
- setenv ("rootpath", NetOurRootPath);
-
- if (NetOurIP)
- dev_set_param_ip(&eth_current->dev, "ipaddr", NetOurIP);
-
- if (NetServerIP)
- dev_set_param_ip(&eth_current->dev, "serverip", NetServerIP);
-
- if (NetOurDNSIP) {
- ip_to_string (NetOurDNSIP, tmp);
- setenv ("dnsip", tmp);
- }
-#ifdef CONFIG_BOOTP_DNS2
- if (NetOurDNS2IP) {
- ip_to_string (NetOurDNS2IP, tmp);
- setenv ("dnsip2", tmp);
- }
-#endif
- if (NetOurNISDomain[0])
- setenv ("domain", NetOurNISDomain);
-}
-
#ifdef CONFIG_NET_RARP
extern void RarpRequest(void);