Added a real ugle hack so that cat, tar and gzip tools used to do the
authorRod Grimes <rgrimes@FreeBSD.org>
Thu, 26 Aug 1993 03:23:20 +0000 (03:23 +0000)
committerRod Grimes <rgrimes@FreeBSD.org>
Thu, 26 Aug 1993 03:23:20 +0000 (03:23 +0000)
extract can be over writen.  This is done by coping them to /tmp
before the extract begins, running them from /tmp, then removing them
after the extract has completed.

Removed all section about setting up sendmail.cf, since this was for the
old sendmail stuff and should not be required by the new sendmail.cf file
that is shipped with the system.

etc/etc.i386/inst2.profile

index 09d65bc..6775e97 100644 (file)
@@ -106,8 +106,11 @@ extract()
                        tarverbose=
                        ;;
        esac
                        tarverbose=
                        ;;
        esac
-       cat "$@"* | gunzip | (cd / ; tar --extract --file - --unlink --preserve-permissions ${tarverbose} )
-
+       #XXX ugly hack to eliminate busy files, copy them to /tmp and use them
+       #from there...
+       cp -p /bin/cat /usr/bin/gunzip /usr/bin/tar /tmp
+       /tmp/cat "$@"* | /tmp/gunzip | (cd / ; /tmp/tar --extract --file - --unlink --preserve-permissions ${tarverbose} )
+       rm -f /bin/cat /tmp/gunzip /tmp/tar
        sync
 }
 configure()
        sync
 }
 configure()
@@ -135,38 +138,6 @@ configure()
                dname=$proto_domain
        fi
 
                dname=$proto_domain
        fi
 
-#      echo -n "Setting up domain name in sendmail.cf..."
-#      sed -e "s/YOUR_DOMAIN_GOES_HERE/$dname/" \
-#              < /etc/sendmail.cf_proto > /etc/sendmail.cf
-#      echo    " done."
-#
-#      echo -n "Freezing sendmail.cf..."
-#      /usr/sbin/sendmail -bz
-#      echo    " done."
-#
-#      echo    "\a"
-#      echo    "WARNING: you should look over the /etc/sendmail.cf file,"
-#      echo    "make sure things are set up properly, then re-freeze"
-#      echo    "it with the command '/usr/sbin/sendmail -bz'."
-#
-#      echo    ""
-#      echo    "Building aliases database..."
-#      newaliases
-#      echo    "\a"
-#      echo    "WARNING: you should look over the /etc/aliases file,"
-#      echo    "make sure things are set up properly, then re-build"
-#      echo    "it with the command 'newaliases'."
-
-#      cp /etc/sendmail.cf_proto /etc/sendmail.cf
-
-#      echo    "\a"
-#      echo    "WARNING: sendmail will puke on your carpet when the machine"
-#      echo    "starts up.  If you don't want it to keep doing this, either"
-#      echo    "turn it off in /etc/rc, or give it a reasonable"
-#      echo    "/etc/sendmail.cf file."
-
-#      echo    "127.0.0.1     localhost" > /etc/hosts
-
        echo    ""
        echo -n "Does this machine have an ethernet interface? [y] "
        read resp
        echo    ""
        echo -n "Does this machine have an ethernet interface? [y] "
        read resp