diff options
author | Geoff Rehmet <csgr@FreeBSD.org> | 1994-06-11 12:42:35 +0000 |
---|---|---|
committer | Geoff Rehmet <csgr@FreeBSD.org> | 1994-06-11 12:42:35 +0000 |
commit | 3b7e1fa30008f55c6cfbf24ca5d875d9ca2927eb (patch) | |
tree | 8e2e671e08aa1f83ac392ec34c6d82cac130e333 /etc | |
parent | 600f527fc62149b6465d4a1abc37e2eb6865ed49 (diff) | |
download | src-3b7e1fa30008f55c6cfbf24ca5d875d9ca2927eb.tar.gz src-3b7e1fa30008f55c6cfbf24ca5d875d9ca2927eb.zip |
Allow configuration of resolv.conf though "configure". The
configuration which is done is minimal, and the script refers the user
to the resolver(5) manual page for information on fine-tuning name
resolution.
Notes
Notes:
svn path=/head/; revision=1706
Diffstat (limited to 'etc')
-rw-r--r-- | etc/etc.i386/cpio.magic | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/etc/etc.i386/cpio.magic b/etc/etc.i386/cpio.magic index 279527eea74b..fec0da601808 100644 --- a/etc/etc.i386/cpio.magic +++ b/etc/etc.i386/cpio.magic @@ -1,5 +1,5 @@ #!bin/sh -# $Id: cpio.magic,v 1.6 1994/04/26 23:26:18 jkh Exp $ +# $Id: cpio.magic,v 1.7 1994/06/08 10:52:10 csgr Exp $ # set_tmp_dir() { @@ -359,6 +359,30 @@ configure() ;; esac + echo + echo -n "Does your system have access to a nameserver? [n] " + read resp + case "$resp" in + y*) + echo "OK: Configuring your /etc/resolv.conf" + echo "To fine-tune this configuration, refer to the" + echo "resolver(5) manual page" + echo "" + + nameserver= + while [ "$nameserver" = "" ]; do + echo -n "Enter the IP number of your nameserver: " + read nameserver + done + + echo "nameserver $nameserver" > /etc/resolv.conf + + echo " " + ;; + *) + ;; + esac + sync echo |