summaryrefslogtreecommitdiffstats
path: root/lib/pb-config/storage-powerpc-nvram.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-08-08 15:41:39 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-08-08 16:30:00 +0800
commit9b7a01a40fd9476583fb5f7dfbd4006e45d8e291 (patch)
treeae9182a4f668ad5344a7d35a10dccad2803969f3 /lib/pb-config/storage-powerpc-nvram.c
parent6557f07325409d769f414035cca05a563418e729 (diff)
downloadtalos-petitboot-9b7a01a40fd9476583fb5f7dfbd4006e45d8e291.tar.gz
talos-petitboot-9b7a01a40fd9476583fb5f7dfbd4006e45d8e291.zip
network: handle DNS config
If we have a dns config option, update resolv.conf Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'lib/pb-config/storage-powerpc-nvram.c')
-rw-r--r--lib/pb-config/storage-powerpc-nvram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pb-config/storage-powerpc-nvram.c b/lib/pb-config/storage-powerpc-nvram.c
index 734741e..3ed3c46 100644
--- a/lib/pb-config/storage-powerpc-nvram.c
+++ b/lib/pb-config/storage-powerpc-nvram.c
@@ -315,7 +315,7 @@ static void populate_network_config(struct powerpc_nvram_storage *nv,
if (!tok)
break;
- if (strncmp(tok, "dns,", strlen("dns,")))
+ if (!strncasecmp(tok, "dns,", strlen("dns,")))
parse_one_dns_config(config, tok + strlen("dns,"));
else
parse_one_interface_config(config, tok);
OpenPOWER on IntegriCloud