summaryrefslogtreecommitdiffstats
path: root/net/dhcp.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-09-03 20:05:39 +0800
committerSascha Hauer <s.hauer@pengutronix.de>2012-10-02 08:57:07 +0200
commit8166603baaa36bebc5c541c4f04f4bcffdb81768 (patch)
tree399a33c063d430bddd7d02d8794ea32000fe8108 /net/dhcp.c
parent4676721b30274f318a56672b34d394e1df365a3d (diff)
downloadbarebox-8166603baaa36bebc5c541c4f04f4bcffdb81768.tar.gz
barebox-8166603baaa36bebc5c541c4f04f4bcffdb81768.tar.xz
defaultenv: switch hostname to global.hostname
Udpate dhcp with it too. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'net/dhcp.c')
-rw-r--r--net/dhcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/dhcp.c b/net/dhcp.c
index 79efa3e30e..e73cc70ac0 100644
--- a/net/dhcp.c
+++ b/net/dhcp.c
@@ -175,7 +175,7 @@ struct dhcp_opt dhcp_options[] = {
}, {
.option = 12,
.handle = env_str_handle,
- .barebox_var_name = "hostname",
+ .barebox_var_name = "global.hostname",
}, {
.option = 15,
.handle = env_str_handle,
@@ -248,7 +248,7 @@ struct dhcp_param dhcp_params[] = {
{
.option = DHCP_HOSTNAME,
.handle = dhcp_set_string_options,
- .barebox_var_name = "hostname",
+ .barebox_var_name = "global.hostname",
}, {
.option = DHCP_VENDOR_ID,
.handle = dhcp_set_string_options,