diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2015-12-11 15:46:26 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-12-01 12:33:33 +0100 |
commit | d5d342d26368c1f6b1ba597eea5b471bf4b9c344 (patch) | |
tree | 02914da1472457283afffc870dfe84f524a96e16 /net/dhcp.c | |
parent | ba61b249609d28a2a3e750b3602d1ba2a8d8b140 (diff) | |
download | barebox-d5d342d26368c1f6b1ba597eea5b471bf4b9c344.tar.gz barebox-d5d342d26368c1f6b1ba597eea5b471bf4b9c344.tar.xz |
net: Make domainname and nameserver globalvars
Register domainname and nameserver as globalvars rather than attaching
them to a dedicated net device. the global device already exists and
already contains much of the barebox configuration, so no need to add
an extra device for network config.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'net/dhcp.c')
-rw-r--r-- | net/dhcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/dhcp.c b/net/dhcp.c index 4d74733d37..68696d69e8 100644 --- a/net/dhcp.c +++ b/net/dhcp.c @@ -242,7 +242,7 @@ struct dhcp_opt dhcp_options[] = { }, { .option = 6, .handle = env_ip_handle, - .barebox_var_name = "net.nameserver", + .barebox_var_name = "global.net.nameserver", }, { .option = DHCP_HOSTNAME, .copy_only_if_valid = 1, @@ -252,7 +252,7 @@ struct dhcp_opt dhcp_options[] = { }, { .option = 15, .handle = env_str_handle, - .barebox_var_name = "net.domainname", + .barebox_var_name = "global.net.domainname", }, { .option = 17, .handle = env_str_handle, |