Allow configuration of resolv.conf though "configure". The
authorGeoff Rehmet <csgr@alpha.ru.ac.za>
Sat, 11 Jun 1994 12:42:35 +0000 (12:42 +0000)
committerGeoff Rehmet <csgr@alpha.ru.ac.za>
Sat, 11 Jun 1994 12:42:35 +0000 (12:42 +0000)
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.

etc/etc.i386/cpio.magic

index 279527e..fec0da6 100644 (file)
@@ -1,5 +1,5 @@
 #!bin/sh
 #!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()
 {
 #
 set_tmp_dir()
 {
@@ -359,6 +359,30 @@ configure()
                ;;
        esac
 
                ;;
        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
        sync
 
        echo