X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=lib%2Fpb-config%2Fstorage-powerpc-nvram.c;h=42de5984f02cc0e53537f864b8f3c067c2f0db03;hp=bd7526806aeb0c0d11cb2906fc28b78932648504;hb=33527e065d9506e05f61c020a473544123c0601b;hpb=9239fd1ec121fc6c6eda49ef5c2dab081a026785 diff --git a/lib/pb-config/storage-powerpc-nvram.c b/lib/pb-config/storage-powerpc-nvram.c index bd75268..42de598 100644 --- a/lib/pb-config/storage-powerpc-nvram.c +++ b/lib/pb-config/storage-powerpc-nvram.c @@ -426,7 +426,7 @@ static char *dns_config_str(void *ctx, const char **dns_servers, int n) char *str; int i; - str = talloc_strdup(ctx, "dns="); + str = talloc_strdup(ctx, "dns,"); for (i = 0; i < n; i++) { str = talloc_asprintf_append(str, "%s%s", i == 0 ? "" : ",", @@ -481,8 +481,7 @@ static int update_config(struct powerpc_nvram_storage *nv, talloc_free(val); } - if (config->network.n_interfaces) - update_network_config(nv, config); + update_network_config(nv, config); return write_nvram(nv); }