summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/config.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-05-26 20:45:20 +0000
committerjkh <jkh@FreeBSD.org>1995-05-26 20:45:20 +0000
commit2c1aa198eb5de34b73c883882ddee0739fd5f447 (patch)
treefc57a9165a12e93458ba530ae017299f96ef8665 /usr.sbin/sysinstall/config.c
parent9a596693ad74d8bcb1b6c3764f0be96f1198f0ac (diff)
downloadFreeBSD-src-2c1aa198eb5de34b73c883882ddee0739fd5f447.zip
FreeBSD-src-2c1aa198eb5de34b73c883882ddee0739fd5f447.tar.gz
Clean up the variable handling code a little.
Write /etc/hosts in the right place.
Diffstat (limited to 'usr.sbin/sysinstall/config.c')
-rw-r--r--usr.sbin/sysinstall/config.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/usr.sbin/sysinstall/config.c b/usr.sbin/sysinstall/config.c
index a9a6637..83eb98b 100644
--- a/usr.sbin/sysinstall/config.c
+++ b/usr.sbin/sysinstall/config.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: config.c,v 1.7 1995/05/26 08:41:35 jkh Exp $
+ * $Id: config.c,v 1.8 1995/05/26 19:28:00 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -311,11 +311,6 @@ configResolv(void)
fprintf(fp, "nameserver\t%s\n", getenv(VAR_NAMESERVER));
msgNotify("Wrote /etc/resolv.conf");
fclose(fp);
- if (getenv(VAR_IPADDR)) {
- fp = fopen("/etc/hosts", "a");
- fprintf(fp, "%s\t\t%s\n", getenv(VAR_IPADDR), getenv(VAR_HOSTNAME));
- fclose(fp);
- }
alreadyDone = TRUE;
}
OpenPOWER on IntegriCloud