summaryrefslogtreecommitdiffstats
path: root/loader
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-04-28 20:30:06 +0000
committerErik Troan <ewt@redhat.com>2000-04-28 20:30:06 +0000
commit716333cc3ca5a7b5e1187981739672e7723410d4 (patch)
tree46bc7f74ebf8f2ad6bfe6a7c3e890555c9492a05 /loader
parentef9acddb4f5fe94cef2f3f4cd513251c4225b2fd (diff)
downloadanaconda-716333cc3ca5a7b5e1187981739672e7723410d4.tar.gz
anaconda-716333cc3ca5a7b5e1187981739672e7723410d4.tar.xz
anaconda-716333cc3ca5a7b5e1187981739672e7723410d4.zip
fixed dns server prompt for dhcp
Diffstat (limited to 'loader')
-rw-r--r--loader/net.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/loader/net.c b/loader/net.c
index ece1b58c8..67a99a994 100644
--- a/loader/net.c
+++ b/loader/net.c
@@ -227,7 +227,7 @@ static int getDnsServers(struct networkDeviceConfig * cfg) {
"If you know what your nameserver is, please enter it "
"now. If you don't have this information, you can leave "
"this field blank and the install will continue."),
- 40, 5, 10, 25, entry, _("OK"), _("Back"));
+ 40, 5, 10, 25, entry, _("OK"), _("Back"), NULL);
if (rc == 2) return LOADER_BACK;
@@ -237,8 +237,10 @@ static int getDnsServers(struct networkDeviceConfig * cfg) {
rc = 2;
}
- cfg->dev.set |= PUMP_NETINFO_HAS_DNS;
- } while (rc != 2);
+ } while (rc == 2);
+
+ cfg->dev.set |= PUMP_NETINFO_HAS_DNS;
+ cfg->dev.numDns = 1;
return LOADER_OK;
}