1993-08-30 02:22:02 +00:00
|
|
|
|
stty status '^T'
|
1993-09-11 08:08:11 +00:00
|
|
|
|
trap : 2
|
|
|
|
|
trap : 3
|
1993-08-30 02:22:02 +00:00
|
|
|
|
HOME=/; export HOME
|
1993-09-18 08:20:32 +00:00
|
|
|
|
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/distbin; export PATH
|
1993-08-30 02:22:02 +00:00
|
|
|
|
if [ -e /fastboot ]
|
|
|
|
|
then
|
|
|
|
|
echo Fast boot ... skipping disk checks
|
|
|
|
|
else
|
|
|
|
|
echo Automatic reboot in progress...
|
|
|
|
|
fsck -p
|
|
|
|
|
case $? in
|
|
|
|
|
0)
|
|
|
|
|
;;
|
|
|
|
|
2)
|
|
|
|
|
exit 1
|
|
|
|
|
;;
|
|
|
|
|
4)
|
1993-08-31 15:02:53 +00:00
|
|
|
|
echo; echo README README README README README README README
|
|
|
|
|
echo
|
|
|
|
|
echo "NOTE: The above errors are expected if this is the"
|
|
|
|
|
echo "first time you have booted from the hard disk after"
|
|
|
|
|
echo "completing the floppy install"; echo
|
|
|
|
|
echo "Automatic file system check changed the root file system"
|
|
|
|
|
echo "The system must halt for these corrections to take effect"
|
1993-09-11 06:03:37 +00:00
|
|
|
|
echo
|
1993-09-12 23:55:35 +00:00
|
|
|
|
reboot
|
|
|
|
|
echo "reboot failed... help!"
|
1993-08-30 02:22:02 +00:00
|
|
|
|
exit 1
|
|
|
|
|
;;
|
|
|
|
|
8)
|
|
|
|
|
echo "Automatic file system check failed... help!"
|
|
|
|
|
exit 1
|
|
|
|
|
;;
|
|
|
|
|
12)
|
|
|
|
|
echo "Reboot interrupted"
|
|
|
|
|
exit 1
|
|
|
|
|
;;
|
|
|
|
|
130)
|
|
|
|
|
exit 1
|
|
|
|
|
;;
|
|
|
|
|
*)
|
|
|
|
|
echo "Unknown error in reboot"
|
|
|
|
|
exit 1
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
fi
|
|
|
|
|
|
1993-09-11 08:08:11 +00:00
|
|
|
|
trap 2
|
1993-08-30 02:22:02 +00:00
|
|
|
|
trap "echo 'Reboot interrupted'; exit 1" 3
|
|
|
|
|
umount -a >/dev/null 2>&1
|
|
|
|
|
mount -a -t nonfs
|
1993-08-31 15:02:53 +00:00
|
|
|
|
rm -f /fastboot
|
1993-08-30 02:22:02 +00:00
|
|
|
|
(cd /var/run && { rm -rf -- *; cp /dev/null utmp; chmod 644 utmp; })
|
|
|
|
|
|
1993-08-11 12:51:37 +00:00
|
|
|
|
TERM=pc3 # terminal emulator, for elvis
|
|
|
|
|
TERMCAP="\
|
|
|
|
|
pc3|ibmpc3:li#25:co#80:am:bs:bw:eo:cd=\E[J:ce=\E[K:cl=\Ec:cm=\E[%i%2;%2H:\
|
|
|
|
|
do=\E[B:ho=\E[;H:nd=\E[C:up=\E[A:so=\E[7m:se=\E[0m:us=\E[4m:ue=\E[0m:\
|
|
|
|
|
:ac=l\332q\304k\277x\263j\331m\300w\302u\264v\301t\303n\305:\
|
|
|
|
|
:kb=^h:kh=\E[Y:ku=\E[A:kd=\E[B:kl=\E[D:kr=\E[C:"
|
1993-08-12 07:14:23 +00:00
|
|
|
|
OPSYSTEM=FreeBSD
|
1993-10-16 12:06:30 +00:00
|
|
|
|
RELEASE="1.0"
|
1993-08-11 12:51:37 +00:00
|
|
|
|
export TERMCAP
|
|
|
|
|
export TERM
|
1993-08-12 07:14:23 +00:00
|
|
|
|
echo "${OPSYSTEM} Base System Release ${RELEASE}"
|
1993-08-11 12:51:37 +00:00
|
|
|
|
echo ""
|
1993-08-12 07:14:23 +00:00
|
|
|
|
echo "Congratulations, you've got ${OPSYSTEM} on the hard disk!"
|
1993-09-11 06:03:37 +00:00
|
|
|
|
echo
|
1993-08-30 02:22:02 +00:00
|
|
|
|
echo "Press the return key for more installation instructions"
|
|
|
|
|
read junkit
|
1993-09-11 06:03:37 +00:00
|
|
|
|
echo
|
1993-08-11 12:51:37 +00:00
|
|
|
|
echo "To finish installation:"
|
1993-08-30 02:22:02 +00:00
|
|
|
|
echo "Pick a temporary directory by running set_tmp_dir. Make sure it's"
|
1993-08-11 12:51:37 +00:00
|
|
|
|
echo "in a place with lots of space, probably under /usr."
|
|
|
|
|
echo "Then, load the remaining distribution files into that temporary"
|
|
|
|
|
echo "directory by issuing one of the following commands:"
|
1993-09-11 06:03:37 +00:00
|
|
|
|
echo
|
|
|
|
|
echo " load_fd load_qic_tape load_scsi_tape"
|
|
|
|
|
echo
|
1993-08-11 12:51:37 +00:00
|
|
|
|
echo "or by fetching the files with ftp (see the installation notes for"
|
|
|
|
|
echo "information on how to do that)."
|
1993-09-11 06:03:37 +00:00
|
|
|
|
echo
|
1993-08-11 12:51:37 +00:00
|
|
|
|
echo "Once this is complete, extract the distribution files by issuing the"
|
|
|
|
|
echo "command 'extract <distribution>' where <distribution> is the base name"
|
1993-08-12 07:14:23 +00:00
|
|
|
|
echo "of the distribution files, e.g. 'base10'."
|
1993-09-11 06:03:37 +00:00
|
|
|
|
echo
|
1993-08-11 12:51:37 +00:00
|
|
|
|
echo "Once all of the filesets you wish to install have been extracted,"
|
|
|
|
|
echo "enter the command 'configure' to finish setting up the system"
|
|
|
|
|
echo " "
|
1993-08-30 02:22:02 +00:00
|
|
|
|
echo "If you should wish to uninstall ${OPSYSTEM}, delete the partition by using the"
|
|
|
|
|
echo "DOS 5 FDISK program. If installed on the entire drive, use the FDISK/MBR"
|
|
|
|
|
echo "to remove the ${OPSYSTEM} bootstrap from the drive."
|
1993-08-11 12:51:37 +00:00
|
|
|
|
echo 'erase ^?, werase ^H, kill ^U, intr ^C'
|
|
|
|
|
stty newcrt werase intr kill erase 9600
|
|
|
|
|
umask 0
|
|
|
|
|
set_tmp_dir()
|
|
|
|
|
{
|
|
|
|
|
def_tmp_dir=`pwd`
|
1993-09-21 10:24:42 +00:00
|
|
|
|
[ "$def_tmp_dir" = "/" ] && def_tmp_dir=/usr/distrib
|
|
|
|
|
echo -n "Copy files to which directory? [${def_tmp_dir}] "
|
1993-08-11 12:51:37 +00:00
|
|
|
|
read tmp_dir
|
1993-09-21 10:24:42 +00:00
|
|
|
|
[ ! "$tmp_dir" ] && tmp_dir=$def_tmp_dir
|
1993-08-11 12:51:37 +00:00
|
|
|
|
if [ ! -d "$tmp_dir" ]; then
|
|
|
|
|
/bin/rm -rf $tmp_dir
|
|
|
|
|
mkdir -p $tmp_dir
|
|
|
|
|
fi
|
1993-09-21 10:24:42 +00:00
|
|
|
|
echo
|
1993-08-11 12:51:37 +00:00
|
|
|
|
}
|
|
|
|
|
tmp_dir()
|
|
|
|
|
{
|
|
|
|
|
if [ "$tmp_dir" = "" ]; then
|
|
|
|
|
set_tmp_dir
|
|
|
|
|
fi
|
|
|
|
|
cd $tmp_dir
|
|
|
|
|
}
|
|
|
|
|
load_fd()
|
|
|
|
|
{
|
|
|
|
|
tmp_dir
|
Added DOS partition support and maybe badblock remappping.
The following additional changes are needed for the new install disks:
1) Remove from filesystem disk's /filelist: bin/cat, dev/MAKEDEV.local.
2) Remove from the filesystem disk: /bin/cat, /COPYRIGHT and /dev/MAKEDEV.local.
3) Add to the filesystem disk: /sbin/fdisk, /dev/fd1a and /dev/rfd1a.
4) Build a fourth DOS disk containing at least: os-bs, rz/sz
Outstanding problems:
1) If there are >1024 cylinders, then FreeBSD cannot boot unless installed
at cylinder 0 (and since neither can DOS evidently, the two can't share
a disk in this case).
2) If FreeBSD is installed at cylinder 0, subsequent installs tend to fail.
3) If a DOS partition exists, disklabel doesn't seem to update the disk
geometry in the FreeBSD disklabel correctly (so reinstalling FreeBSD with
a new geometry requires installing it at cylinder 0). Rod suggested
invoking disklabel on the raw c-partition. This makes sense, but it
doesn't seem to work (newfs, for instance, can't find the new label).
1993-09-07 12:02:11 +00:00
|
|
|
|
drive=
|
|
|
|
|
altdrive=
|
1993-09-21 10:24:42 +00:00
|
|
|
|
subdir=
|
Added DOS partition support and maybe badblock remappping.
The following additional changes are needed for the new install disks:
1) Remove from filesystem disk's /filelist: bin/cat, dev/MAKEDEV.local.
2) Remove from the filesystem disk: /bin/cat, /COPYRIGHT and /dev/MAKEDEV.local.
3) Add to the filesystem disk: /sbin/fdisk, /dev/fd1a and /dev/rfd1a.
4) Build a fourth DOS disk containing at least: os-bs, rz/sz
Outstanding problems:
1) If there are >1024 cylinders, then FreeBSD cannot boot unless installed
at cylinder 0 (and since neither can DOS evidently, the two can't share
a disk in this case).
2) If FreeBSD is installed at cylinder 0, subsequent installs tend to fail.
3) If a DOS partition exists, disklabel doesn't seem to update the disk
geometry in the FreeBSD disklabel correctly (so reinstalling FreeBSD with
a new geometry requires installing it at cylinder 0). Rod suggested
invoking disklabel on the raw c-partition. This makes sense, but it
doesn't seem to work (newfs, for instance, can't find the new label).
1993-09-07 12:02:11 +00:00
|
|
|
|
while [ -z "$drive" ]; do
|
1993-09-22 07:38:18 +00:00
|
|
|
|
echo -n "Read from which drive (or ? for help)? [c] "
|
Added DOS partition support and maybe badblock remappping.
The following additional changes are needed for the new install disks:
1) Remove from filesystem disk's /filelist: bin/cat, dev/MAKEDEV.local.
2) Remove from the filesystem disk: /bin/cat, /COPYRIGHT and /dev/MAKEDEV.local.
3) Add to the filesystem disk: /sbin/fdisk, /dev/fd1a and /dev/rfd1a.
4) Build a fourth DOS disk containing at least: os-bs, rz/sz
Outstanding problems:
1) If there are >1024 cylinders, then FreeBSD cannot boot unless installed
at cylinder 0 (and since neither can DOS evidently, the two can't share
a disk in this case).
2) If FreeBSD is installed at cylinder 0, subsequent installs tend to fail.
3) If a DOS partition exists, disklabel doesn't seem to update the disk
geometry in the FreeBSD disklabel correctly (so reinstalling FreeBSD with
a new geometry requires installing it at cylinder 0). Rod suggested
invoking disklabel on the raw c-partition. This makes sense, but it
doesn't seem to work (newfs, for instance, can't find the new label).
1993-09-07 12:02:11 +00:00
|
|
|
|
read answer junk
|
1993-09-21 10:24:42 +00:00
|
|
|
|
case "${answer:-c}" in
|
Added DOS partition support and maybe badblock remappping.
The following additional changes are needed for the new install disks:
1) Remove from filesystem disk's /filelist: bin/cat, dev/MAKEDEV.local.
2) Remove from the filesystem disk: /bin/cat, /COPYRIGHT and /dev/MAKEDEV.local.
3) Add to the filesystem disk: /sbin/fdisk, /dev/fd1a and /dev/rfd1a.
4) Build a fourth DOS disk containing at least: os-bs, rz/sz
Outstanding problems:
1) If there are >1024 cylinders, then FreeBSD cannot boot unless installed
at cylinder 0 (and since neither can DOS evidently, the two can't share
a disk in this case).
2) If FreeBSD is installed at cylinder 0, subsequent installs tend to fail.
3) If a DOS partition exists, disklabel doesn't seem to update the disk
geometry in the FreeBSD disklabel correctly (so reinstalling FreeBSD with
a new geometry requires installing it at cylinder 0). Rod suggested
invoking disklabel on the raw c-partition. This makes sense, but it
doesn't seem to work (newfs, for instance, can't find the new label).
1993-09-07 12:02:11 +00:00
|
|
|
|
a*b|A*B)
|
|
|
|
|
drive=A; altdrive=B
|
|
|
|
|
;;
|
|
|
|
|
b*a|B*A)
|
|
|
|
|
drive=B; altdrive=A
|
|
|
|
|
;;
|
|
|
|
|
a*|A*)
|
|
|
|
|
drive=A; altdrive=A
|
|
|
|
|
;;
|
|
|
|
|
b*|B*)
|
|
|
|
|
drive=B; altdrive=B
|
|
|
|
|
;;
|
1993-09-21 10:24:42 +00:00
|
|
|
|
c*|C*)
|
|
|
|
|
while read data; do
|
|
|
|
|
msdos_device=`expr X"$data" : 'X[ ]*\([^ ]*\)[^M]*pcfs'`
|
|
|
|
|
msdos_dir=`expr X"$data" : 'X[ ]*[^ ]*[ ]*\([^ ]*\)'`
|
|
|
|
|
[ "${msdos_device}" ] && break
|
|
|
|
|
done </etc/fstab
|
|
|
|
|
if [ ! "$msdos_device" ]; then
|
|
|
|
|
echo
|
|
|
|
|
echo "Cannot find MS-DOS in filesystem table"
|
|
|
|
|
continue
|
|
|
|
|
fi
|
|
|
|
|
drive=C; altdrive=C
|
|
|
|
|
while :; do
|
|
|
|
|
echo
|
|
|
|
|
echo -n "Read from which MS-DOS drive C: directory? [/] "
|
|
|
|
|
read resp junk
|
|
|
|
|
newdir=$(echo "${resp:-/}" | \
|
|
|
|
|
awk '{ sub(/^[Cc]*:*/, ""); gsub(/\\/, "/"); gsub(/^\/*/, ""); gsub(/\/*$/, ""); print $0 }')
|
|
|
|
|
if [ -d ${msdos_dir}/${newdir} ]; then
|
|
|
|
|
subdir=$newdir
|
|
|
|
|
break
|
|
|
|
|
else
|
|
|
|
|
echo "C:/${newdir}: No such directory"
|
|
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
;;
|
Added DOS partition support and maybe badblock remappping.
The following additional changes are needed for the new install disks:
1) Remove from filesystem disk's /filelist: bin/cat, dev/MAKEDEV.local.
2) Remove from the filesystem disk: /bin/cat, /COPYRIGHT and /dev/MAKEDEV.local.
3) Add to the filesystem disk: /sbin/fdisk, /dev/fd1a and /dev/rfd1a.
4) Build a fourth DOS disk containing at least: os-bs, rz/sz
Outstanding problems:
1) If there are >1024 cylinders, then FreeBSD cannot boot unless installed
at cylinder 0 (and since neither can DOS evidently, the two can't share
a disk in this case).
2) If FreeBSD is installed at cylinder 0, subsequent installs tend to fail.
3) If a DOS partition exists, disklabel doesn't seem to update the disk
geometry in the FreeBSD disklabel correctly (so reinstalling FreeBSD with
a new geometry requires installing it at cylinder 0). Rod suggested
invoking disklabel on the raw c-partition. This makes sense, but it
doesn't seem to work (newfs, for instance, can't find the new label).
1993-09-07 12:02:11 +00:00
|
|
|
|
q*|Q*)
|
|
|
|
|
drive=q
|
|
|
|
|
;;
|
|
|
|
|
\?*)
|
|
|
|
|
echo
|
|
|
|
|
echo "Enter: To:"
|
|
|
|
|
echo "------ ---"
|
|
|
|
|
echo " a Read from floppy drive A:"
|
|
|
|
|
echo " b Read from floppy drive B:"
|
1993-09-21 10:24:42 +00:00
|
|
|
|
echo " c Read from MS-DOS hard drive C:"
|
Added DOS partition support and maybe badblock remappping.
The following additional changes are needed for the new install disks:
1) Remove from filesystem disk's /filelist: bin/cat, dev/MAKEDEV.local.
2) Remove from the filesystem disk: /bin/cat, /COPYRIGHT and /dev/MAKEDEV.local.
3) Add to the filesystem disk: /sbin/fdisk, /dev/fd1a and /dev/rfd1a.
4) Build a fourth DOS disk containing at least: os-bs, rz/sz
Outstanding problems:
1) If there are >1024 cylinders, then FreeBSD cannot boot unless installed
at cylinder 0 (and since neither can DOS evidently, the two can't share
a disk in this case).
2) If FreeBSD is installed at cylinder 0, subsequent installs tend to fail.
3) If a DOS partition exists, disklabel doesn't seem to update the disk
geometry in the FreeBSD disklabel correctly (so reinstalling FreeBSD with
a new geometry requires installing it at cylinder 0). Rod suggested
invoking disklabel on the raw c-partition. This makes sense, but it
doesn't seem to work (newfs, for instance, can't find the new label).
1993-09-07 12:02:11 +00:00
|
|
|
|
echo " ab Alternate between A: and B:, starting with A:"
|
|
|
|
|
echo " ba Alternate between A: and B:, starting with B:"
|
|
|
|
|
echo " q Quit"
|
|
|
|
|
echo
|
|
|
|
|
;;
|
|
|
|
|
esac
|
1993-08-11 12:51:37 +00:00
|
|
|
|
done
|
1993-09-16 00:45:34 +00:00
|
|
|
|
verbose=-v
|
|
|
|
|
interactive=-i
|
1993-09-21 10:24:42 +00:00
|
|
|
|
if [ "$drive" = "C" ]; then
|
|
|
|
|
dir=${msdos_dir}
|
|
|
|
|
elif [ "$drive" != "q" ]; then
|
|
|
|
|
dir=/tmp/floppy
|
|
|
|
|
[ -d $dir ] && umount $dir >/dev/null 2>&1
|
|
|
|
|
[ -f $dir ] && rm -f $dir
|
|
|
|
|
mkdir -p $dir
|
|
|
|
|
fi
|
Added DOS partition support and maybe badblock remappping.
The following additional changes are needed for the new install disks:
1) Remove from filesystem disk's /filelist: bin/cat, dev/MAKEDEV.local.
2) Remove from the filesystem disk: /bin/cat, /COPYRIGHT and /dev/MAKEDEV.local.
3) Add to the filesystem disk: /sbin/fdisk, /dev/fd1a and /dev/rfd1a.
4) Build a fourth DOS disk containing at least: os-bs, rz/sz
Outstanding problems:
1) If there are >1024 cylinders, then FreeBSD cannot boot unless installed
at cylinder 0 (and since neither can DOS evidently, the two can't share
a disk in this case).
2) If FreeBSD is installed at cylinder 0, subsequent installs tend to fail.
3) If a DOS partition exists, disklabel doesn't seem to update the disk
geometry in the FreeBSD disklabel correctly (so reinstalling FreeBSD with
a new geometry requires installing it at cylinder 0). Rod suggested
invoking disklabel on the raw c-partition. This makes sense, but it
doesn't seem to work (newfs, for instance, can't find the new label).
1993-09-07 12:02:11 +00:00
|
|
|
|
while [ "$drive" != "q" ]
|
1993-08-11 12:51:37 +00:00
|
|
|
|
do
|
Added DOS partition support and maybe badblock remappping.
The following additional changes are needed for the new install disks:
1) Remove from filesystem disk's /filelist: bin/cat, dev/MAKEDEV.local.
2) Remove from the filesystem disk: /bin/cat, /COPYRIGHT and /dev/MAKEDEV.local.
3) Add to the filesystem disk: /sbin/fdisk, /dev/fd1a and /dev/rfd1a.
4) Build a fourth DOS disk containing at least: os-bs, rz/sz
Outstanding problems:
1) If there are >1024 cylinders, then FreeBSD cannot boot unless installed
at cylinder 0 (and since neither can DOS evidently, the two can't share
a disk in this case).
2) If FreeBSD is installed at cylinder 0, subsequent installs tend to fail.
3) If a DOS partition exists, disklabel doesn't seem to update the disk
geometry in the FreeBSD disklabel correctly (so reinstalling FreeBSD with
a new geometry requires installing it at cylinder 0). Rod suggested
invoking disklabel on the raw c-partition. This makes sense, but it
doesn't seem to work (newfs, for instance, can't find the new label).
1993-09-07 12:02:11 +00:00
|
|
|
|
device=/dev/fd0a
|
|
|
|
|
[ "$drive" = "B" ] && device=/dev/fd1a
|
1993-09-21 10:24:42 +00:00
|
|
|
|
[ "$drive" = "C" ] && device=${msdos_device}
|
|
|
|
|
echo;
|
|
|
|
|
if [ "$drive" != "C" ]; then
|
|
|
|
|
echo "Insert floppy in drive $drive:, then press RETURN to copy files,"
|
|
|
|
|
echo -n "or enter option (? for help): "
|
|
|
|
|
else
|
|
|
|
|
echo -n "Press RETURN to copy files, or enter option (? for help): "
|
|
|
|
|
fi
|
Added DOS partition support and maybe badblock remappping.
The following additional changes are needed for the new install disks:
1) Remove from filesystem disk's /filelist: bin/cat, dev/MAKEDEV.local.
2) Remove from the filesystem disk: /bin/cat, /COPYRIGHT and /dev/MAKEDEV.local.
3) Add to the filesystem disk: /sbin/fdisk, /dev/fd1a and /dev/rfd1a.
4) Build a fourth DOS disk containing at least: os-bs, rz/sz
Outstanding problems:
1) If there are >1024 cylinders, then FreeBSD cannot boot unless installed
at cylinder 0 (and since neither can DOS evidently, the two can't share
a disk in this case).
2) If FreeBSD is installed at cylinder 0, subsequent installs tend to fail.
3) If a DOS partition exists, disklabel doesn't seem to update the disk
geometry in the FreeBSD disklabel correctly (so reinstalling FreeBSD with
a new geometry requires installing it at cylinder 0). Rod suggested
invoking disklabel on the raw c-partition. This makes sense, but it
doesn't seem to work (newfs, for instance, can't find the new label).
1993-09-07 12:02:11 +00:00
|
|
|
|
read answer junk
|
1993-09-21 10:24:42 +00:00
|
|
|
|
case "${answer:-g}" in
|
|
|
|
|
c*|C*)
|
|
|
|
|
if [ "$drive" != "C" ]; then
|
|
|
|
|
echo "Cannot change directory: not reading from MS-DOS drive C:"
|
|
|
|
|
else
|
|
|
|
|
echo
|
|
|
|
|
echo -n "Read from which MS-DOS drive C: directory? [/${subdir}] "
|
|
|
|
|
read resp junk
|
|
|
|
|
[ ! "$resp" ] && resp="/$subdir"
|
|
|
|
|
absolute=`expr X"$resp" : 'X[Cc]*:*\([/\]\)'`
|
|
|
|
|
subsub=$(echo "${resp}" | \
|
|
|
|
|
awk '{ sub(/^[Cc]*:*/, ""); gsub(/\\/, "/"); gsub(/^\/*/, ""); gsub(/\/*$/, ""); print $0 }')
|
|
|
|
|
if [ "$absolute" -o ! "$subdir" ]; then
|
|
|
|
|
newsub=$subsub
|
|
|
|
|
else
|
|
|
|
|
newsub=$subdir/$subsub
|
|
|
|
|
fi
|
|
|
|
|
if [ -d ${dir}/${newsub} ]; then
|
|
|
|
|
subdir=$newsub
|
|
|
|
|
else
|
|
|
|
|
echo "C:/${newsub}: No such directory"
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
;;
|
|
|
|
|
g*|G*)
|
|
|
|
|
sync
|
|
|
|
|
if [ "$drive" = "C" ]; then
|
|
|
|
|
[ "$verbose" ] &&
|
|
|
|
|
{ echo; echo "Please wait. Copying files from MS-DOS C:/${subdir}"; }
|
|
|
|
|
cp ${msdos_dir}/${subdir}/* .
|
|
|
|
|
sync
|
|
|
|
|
elif mount -t pcfs $verbose $device $dir; then
|
Added DOS partition support and maybe badblock remappping.
The following additional changes are needed for the new install disks:
1) Remove from filesystem disk's /filelist: bin/cat, dev/MAKEDEV.local.
2) Remove from the filesystem disk: /bin/cat, /COPYRIGHT and /dev/MAKEDEV.local.
3) Add to the filesystem disk: /sbin/fdisk, /dev/fd1a and /dev/rfd1a.
4) Build a fourth DOS disk containing at least: os-bs, rz/sz
Outstanding problems:
1) If there are >1024 cylinders, then FreeBSD cannot boot unless installed
at cylinder 0 (and since neither can DOS evidently, the two can't share
a disk in this case).
2) If FreeBSD is installed at cylinder 0, subsequent installs tend to fail.
3) If a DOS partition exists, disklabel doesn't seem to update the disk
geometry in the FreeBSD disklabel correctly (so reinstalling FreeBSD with
a new geometry requires installing it at cylinder 0). Rod suggested
invoking disklabel on the raw c-partition. This makes sense, but it
doesn't seem to work (newfs, for instance, can't find the new label).
1993-09-07 12:02:11 +00:00
|
|
|
|
[ "$verbose" ] &&
|
1993-09-21 10:24:42 +00:00
|
|
|
|
{ echo; echo "Please wait. Copying files to disk..."; }
|
Added DOS partition support and maybe badblock remappping.
The following additional changes are needed for the new install disks:
1) Remove from filesystem disk's /filelist: bin/cat, dev/MAKEDEV.local.
2) Remove from the filesystem disk: /bin/cat, /COPYRIGHT and /dev/MAKEDEV.local.
3) Add to the filesystem disk: /sbin/fdisk, /dev/fd1a and /dev/rfd1a.
4) Build a fourth DOS disk containing at least: os-bs, rz/sz
Outstanding problems:
1) If there are >1024 cylinders, then FreeBSD cannot boot unless installed
at cylinder 0 (and since neither can DOS evidently, the two can't share
a disk in this case).
2) If FreeBSD is installed at cylinder 0, subsequent installs tend to fail.
3) If a DOS partition exists, disklabel doesn't seem to update the disk
geometry in the FreeBSD disklabel correctly (so reinstalling FreeBSD with
a new geometry requires installing it at cylinder 0). Rod suggested
invoking disklabel on the raw c-partition. This makes sense, but it
doesn't seem to work (newfs, for instance, can't find the new label).
1993-09-07 12:02:11 +00:00
|
|
|
|
cp $interactive $dir/* .
|
|
|
|
|
sync
|
|
|
|
|
umount $dir
|
|
|
|
|
tmp=$drive; drive=$altdrive; altdrive=$tmp
|
|
|
|
|
fi
|
|
|
|
|
;;
|
|
|
|
|
i*|I*)
|
|
|
|
|
tmp=$interactive; interactive=; [ -z "$tmp" ] && interactive=-i
|
|
|
|
|
tmp=on; [ -z "$interactive" ] && tmp=off
|
|
|
|
|
echo "interactive mode is $tmp"
|
|
|
|
|
;;
|
1993-09-21 10:24:42 +00:00
|
|
|
|
l*|L*)
|
|
|
|
|
sync
|
|
|
|
|
[ "$verbose" ] && echo "Directory of ${drive}:/${subdir}"
|
|
|
|
|
if [ "$drive" = "C" ]; then
|
|
|
|
|
ls -l $dir/${subdir}
|
|
|
|
|
else
|
|
|
|
|
umount $dir >/dev/null 2>&1
|
|
|
|
|
if mount -t pcfs $device $dir; then
|
|
|
|
|
ls -l $dir/${subdir}
|
|
|
|
|
umount $dir
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
;;
|
|
|
|
|
o*|O*)
|
|
|
|
|
tmp=$drive; drive=$altdrive; altdrive=$tmp
|
|
|
|
|
;;
|
|
|
|
|
q*|Q*)
|
|
|
|
|
drive=q
|
|
|
|
|
;;
|
Added DOS partition support and maybe badblock remappping.
The following additional changes are needed for the new install disks:
1) Remove from filesystem disk's /filelist: bin/cat, dev/MAKEDEV.local.
2) Remove from the filesystem disk: /bin/cat, /COPYRIGHT and /dev/MAKEDEV.local.
3) Add to the filesystem disk: /sbin/fdisk, /dev/fd1a and /dev/rfd1a.
4) Build a fourth DOS disk containing at least: os-bs, rz/sz
Outstanding problems:
1) If there are >1024 cylinders, then FreeBSD cannot boot unless installed
at cylinder 0 (and since neither can DOS evidently, the two can't share
a disk in this case).
2) If FreeBSD is installed at cylinder 0, subsequent installs tend to fail.
3) If a DOS partition exists, disklabel doesn't seem to update the disk
geometry in the FreeBSD disklabel correctly (so reinstalling FreeBSD with
a new geometry requires installing it at cylinder 0). Rod suggested
invoking disklabel on the raw c-partition. This makes sense, but it
doesn't seem to work (newfs, for instance, can't find the new label).
1993-09-07 12:02:11 +00:00
|
|
|
|
s*|S*)
|
|
|
|
|
echo; echo -n "tmp_dir is set to $tmp_dir"
|
|
|
|
|
[ "$tmp_dir" != "`pwd`" ] && echo -n " (physically `pwd`)"
|
1993-09-21 10:24:42 +00:00
|
|
|
|
echo; echo "Free space in tmp_dir:"
|
Added DOS partition support and maybe badblock remappping.
The following additional changes are needed for the new install disks:
1) Remove from filesystem disk's /filelist: bin/cat, dev/MAKEDEV.local.
2) Remove from the filesystem disk: /bin/cat, /COPYRIGHT and /dev/MAKEDEV.local.
3) Add to the filesystem disk: /sbin/fdisk, /dev/fd1a and /dev/rfd1a.
4) Build a fourth DOS disk containing at least: os-bs, rz/sz
Outstanding problems:
1) If there are >1024 cylinders, then FreeBSD cannot boot unless installed
at cylinder 0 (and since neither can DOS evidently, the two can't share
a disk in this case).
2) If FreeBSD is installed at cylinder 0, subsequent installs tend to fail.
3) If a DOS partition exists, disklabel doesn't seem to update the disk
geometry in the FreeBSD disklabel correctly (so reinstalling FreeBSD with
a new geometry requires installing it at cylinder 0). Rod suggested
invoking disklabel on the raw c-partition. This makes sense, but it
doesn't seem to work (newfs, for instance, can't find the new label).
1993-09-07 12:02:11 +00:00
|
|
|
|
df -k .
|
1993-09-21 10:24:42 +00:00
|
|
|
|
echo -n "Reading from drive $drive:"
|
Added DOS partition support and maybe badblock remappping.
The following additional changes are needed for the new install disks:
1) Remove from filesystem disk's /filelist: bin/cat, dev/MAKEDEV.local.
2) Remove from the filesystem disk: /bin/cat, /COPYRIGHT and /dev/MAKEDEV.local.
3) Add to the filesystem disk: /sbin/fdisk, /dev/fd1a and /dev/rfd1a.
4) Build a fourth DOS disk containing at least: os-bs, rz/sz
Outstanding problems:
1) If there are >1024 cylinders, then FreeBSD cannot boot unless installed
at cylinder 0 (and since neither can DOS evidently, the two can't share
a disk in this case).
2) If FreeBSD is installed at cylinder 0, subsequent installs tend to fail.
3) If a DOS partition exists, disklabel doesn't seem to update the disk
geometry in the FreeBSD disklabel correctly (so reinstalling FreeBSD with
a new geometry requires installing it at cylinder 0). Rod suggested
invoking disklabel on the raw c-partition. This makes sense, but it
doesn't seem to work (newfs, for instance, can't find the new label).
1993-09-07 12:02:11 +00:00
|
|
|
|
[ "$drive" != "$altdrive" ] && echo -n " and drive $altdrive:"
|
|
|
|
|
echo
|
|
|
|
|
tmp=on; [ -z "$verbose" ] && tmp=off
|
1993-09-21 10:24:42 +00:00
|
|
|
|
echo "Verbose mode is $tmp"
|
Added DOS partition support and maybe badblock remappping.
The following additional changes are needed for the new install disks:
1) Remove from filesystem disk's /filelist: bin/cat, dev/MAKEDEV.local.
2) Remove from the filesystem disk: /bin/cat, /COPYRIGHT and /dev/MAKEDEV.local.
3) Add to the filesystem disk: /sbin/fdisk, /dev/fd1a and /dev/rfd1a.
4) Build a fourth DOS disk containing at least: os-bs, rz/sz
Outstanding problems:
1) If there are >1024 cylinders, then FreeBSD cannot boot unless installed
at cylinder 0 (and since neither can DOS evidently, the two can't share
a disk in this case).
2) If FreeBSD is installed at cylinder 0, subsequent installs tend to fail.
3) If a DOS partition exists, disklabel doesn't seem to update the disk
geometry in the FreeBSD disklabel correctly (so reinstalling FreeBSD with
a new geometry requires installing it at cylinder 0). Rod suggested
invoking disklabel on the raw c-partition. This makes sense, but it
doesn't seem to work (newfs, for instance, can't find the new label).
1993-09-07 12:02:11 +00:00
|
|
|
|
tmp=on; [ -z "$interactive" ] && tmp=off
|
1993-09-21 10:24:42 +00:00
|
|
|
|
echo "Interactive mode is $tmp"
|
Added DOS partition support and maybe badblock remappping.
The following additional changes are needed for the new install disks:
1) Remove from filesystem disk's /filelist: bin/cat, dev/MAKEDEV.local.
2) Remove from the filesystem disk: /bin/cat, /COPYRIGHT and /dev/MAKEDEV.local.
3) Add to the filesystem disk: /sbin/fdisk, /dev/fd1a and /dev/rfd1a.
4) Build a fourth DOS disk containing at least: os-bs, rz/sz
Outstanding problems:
1) If there are >1024 cylinders, then FreeBSD cannot boot unless installed
at cylinder 0 (and since neither can DOS evidently, the two can't share
a disk in this case).
2) If FreeBSD is installed at cylinder 0, subsequent installs tend to fail.
3) If a DOS partition exists, disklabel doesn't seem to update the disk
geometry in the FreeBSD disklabel correctly (so reinstalling FreeBSD with
a new geometry requires installing it at cylinder 0). Rod suggested
invoking disklabel on the raw c-partition. This makes sense, but it
doesn't seem to work (newfs, for instance, can't find the new label).
1993-09-07 12:02:11 +00:00
|
|
|
|
;;
|
1993-09-21 10:24:42 +00:00
|
|
|
|
v*|V*)
|
|
|
|
|
tmp=$verbose; verbose=; [ -z "$tmp" ] && verbose=-v
|
|
|
|
|
tmp=on; [ -z "$verbose" ] && tmp=off
|
|
|
|
|
echo "verbose mode is $tmp"
|
Added DOS partition support and maybe badblock remappping.
The following additional changes are needed for the new install disks:
1) Remove from filesystem disk's /filelist: bin/cat, dev/MAKEDEV.local.
2) Remove from the filesystem disk: /bin/cat, /COPYRIGHT and /dev/MAKEDEV.local.
3) Add to the filesystem disk: /sbin/fdisk, /dev/fd1a and /dev/rfd1a.
4) Build a fourth DOS disk containing at least: os-bs, rz/sz
Outstanding problems:
1) If there are >1024 cylinders, then FreeBSD cannot boot unless installed
at cylinder 0 (and since neither can DOS evidently, the two can't share
a disk in this case).
2) If FreeBSD is installed at cylinder 0, subsequent installs tend to fail.
3) If a DOS partition exists, disklabel doesn't seem to update the disk
geometry in the FreeBSD disklabel correctly (so reinstalling FreeBSD with
a new geometry requires installing it at cylinder 0). Rod suggested
invoking disklabel on the raw c-partition. This makes sense, but it
doesn't seem to work (newfs, for instance, can't find the new label).
1993-09-07 12:02:11 +00:00
|
|
|
|
;;
|
|
|
|
|
\?)
|
|
|
|
|
echo
|
|
|
|
|
echo "Enter: To:"
|
|
|
|
|
echo "----- ---"
|
1993-09-21 10:24:42 +00:00
|
|
|
|
echo "(just RETURN) Copy files from ${drive}:/${subdir} to $tmp_dir"
|
|
|
|
|
echo " c Change directory of MS-DOS drive C:"
|
Added DOS partition support and maybe badblock remappping.
The following additional changes are needed for the new install disks:
1) Remove from filesystem disk's /filelist: bin/cat, dev/MAKEDEV.local.
2) Remove from the filesystem disk: /bin/cat, /COPYRIGHT and /dev/MAKEDEV.local.
3) Add to the filesystem disk: /sbin/fdisk, /dev/fd1a and /dev/rfd1a.
4) Build a fourth DOS disk containing at least: os-bs, rz/sz
Outstanding problems:
1) If there are >1024 cylinders, then FreeBSD cannot boot unless installed
at cylinder 0 (and since neither can DOS evidently, the two can't share
a disk in this case).
2) If FreeBSD is installed at cylinder 0, subsequent installs tend to fail.
3) If a DOS partition exists, disklabel doesn't seem to update the disk
geometry in the FreeBSD disklabel correctly (so reinstalling FreeBSD with
a new geometry requires installing it at cylinder 0). Rod suggested
invoking disklabel on the raw c-partition. This makes sense, but it
doesn't seem to work (newfs, for instance, can't find the new label).
1993-09-07 12:02:11 +00:00
|
|
|
|
echo " i Toggle interactive mode (cp -i)"
|
1993-09-21 10:24:42 +00:00
|
|
|
|
echo " l List directory of current drive"
|
|
|
|
|
echo " o Read from alternate floppy drive"
|
Added DOS partition support and maybe badblock remappping.
The following additional changes are needed for the new install disks:
1) Remove from filesystem disk's /filelist: bin/cat, dev/MAKEDEV.local.
2) Remove from the filesystem disk: /bin/cat, /COPYRIGHT and /dev/MAKEDEV.local.
3) Add to the filesystem disk: /sbin/fdisk, /dev/fd1a and /dev/rfd1a.
4) Build a fourth DOS disk containing at least: os-bs, rz/sz
Outstanding problems:
1) If there are >1024 cylinders, then FreeBSD cannot boot unless installed
at cylinder 0 (and since neither can DOS evidently, the two can't share
a disk in this case).
2) If FreeBSD is installed at cylinder 0, subsequent installs tend to fail.
3) If a DOS partition exists, disklabel doesn't seem to update the disk
geometry in the FreeBSD disklabel correctly (so reinstalling FreeBSD with
a new geometry requires installing it at cylinder 0). Rod suggested
invoking disklabel on the raw c-partition. This makes sense, but it
doesn't seem to work (newfs, for instance, can't find the new label).
1993-09-07 12:02:11 +00:00
|
|
|
|
echo " q Quit"
|
1993-09-21 10:24:42 +00:00
|
|
|
|
echo " s Show status"
|
|
|
|
|
echo " v Toggle verbose mode"
|
Added DOS partition support and maybe badblock remappping.
The following additional changes are needed for the new install disks:
1) Remove from filesystem disk's /filelist: bin/cat, dev/MAKEDEV.local.
2) Remove from the filesystem disk: /bin/cat, /COPYRIGHT and /dev/MAKEDEV.local.
3) Add to the filesystem disk: /sbin/fdisk, /dev/fd1a and /dev/rfd1a.
4) Build a fourth DOS disk containing at least: os-bs, rz/sz
Outstanding problems:
1) If there are >1024 cylinders, then FreeBSD cannot boot unless installed
at cylinder 0 (and since neither can DOS evidently, the two can't share
a disk in this case).
2) If FreeBSD is installed at cylinder 0, subsequent installs tend to fail.
3) If a DOS partition exists, disklabel doesn't seem to update the disk
geometry in the FreeBSD disklabel correctly (so reinstalling FreeBSD with
a new geometry requires installing it at cylinder 0). Rod suggested
invoking disklabel on the raw c-partition. This makes sense, but it
doesn't seem to work (newfs, for instance, can't find the new label).
1993-09-07 12:02:11 +00:00
|
|
|
|
echo
|
|
|
|
|
;;
|
|
|
|
|
esac
|
1993-08-11 12:51:37 +00:00
|
|
|
|
done
|
1993-09-21 10:24:42 +00:00
|
|
|
|
echo "Working directory: `pwd`"
|
|
|
|
|
unset verbose answer drive altdrive device dir subdir tmp interactive
|
1993-08-11 12:51:37 +00:00
|
|
|
|
}
|
|
|
|
|
load_qic_tape()
|
|
|
|
|
{
|
|
|
|
|
tmp_dir
|
|
|
|
|
echo -n "Insert tape into QIC tape drive and hit return to continue: "
|
|
|
|
|
read foo
|
|
|
|
|
tar xvf /dev/rwt0
|
|
|
|
|
}
|
|
|
|
|
load_scsi_tape()
|
|
|
|
|
{
|
|
|
|
|
tmp_dir
|
|
|
|
|
echo -n "Insert tape into SCSI tape drive and hit return to continue: "
|
|
|
|
|
read foo
|
|
|
|
|
tar xvf /dev/nrst0
|
|
|
|
|
}
|
|
|
|
|
extract()
|
|
|
|
|
{
|
|
|
|
|
tmp_dir
|
|
|
|
|
echo -n "Would you like to be verbose about this? [n] "
|
|
|
|
|
read verbose
|
|
|
|
|
case $verbose in
|
Added DOS partition support and maybe badblock remappping.
The following additional changes are needed for the new install disks:
1) Remove from filesystem disk's /filelist: bin/cat, dev/MAKEDEV.local.
2) Remove from the filesystem disk: /bin/cat, /COPYRIGHT and /dev/MAKEDEV.local.
3) Add to the filesystem disk: /sbin/fdisk, /dev/fd1a and /dev/rfd1a.
4) Build a fourth DOS disk containing at least: os-bs, rz/sz
Outstanding problems:
1) If there are >1024 cylinders, then FreeBSD cannot boot unless installed
at cylinder 0 (and since neither can DOS evidently, the two can't share
a disk in this case).
2) If FreeBSD is installed at cylinder 0, subsequent installs tend to fail.
3) If a DOS partition exists, disklabel doesn't seem to update the disk
geometry in the FreeBSD disklabel correctly (so reinstalling FreeBSD with
a new geometry requires installing it at cylinder 0). Rod suggested
invoking disklabel on the raw c-partition. This makes sense, but it
doesn't seem to work (newfs, for instance, can't find the new label).
1993-09-07 12:02:11 +00:00
|
|
|
|
y*|Y*)
|
|
|
|
|
tarverbose=--verbose
|
|
|
|
|
;;
|
|
|
|
|
*)
|
|
|
|
|
tarverbose=
|
|
|
|
|
;;
|
1993-08-11 12:51:37 +00:00
|
|
|
|
esac
|
1993-08-26 03:23:20 +00:00
|
|
|
|
#XXX ugly hack to eliminate busy files, copy them to /tmp and use them
|
|
|
|
|
#from there...
|
1993-09-13 02:23:55 +00:00
|
|
|
|
cp -p /bin/cat /usr/bin/gunzip /usr/bin/tar /tmp
|
Added DOS partition support and maybe badblock remappping.
The following additional changes are needed for the new install disks:
1) Remove from filesystem disk's /filelist: bin/cat, dev/MAKEDEV.local.
2) Remove from the filesystem disk: /bin/cat, /COPYRIGHT and /dev/MAKEDEV.local.
3) Add to the filesystem disk: /sbin/fdisk, /dev/fd1a and /dev/rfd1a.
4) Build a fourth DOS disk containing at least: os-bs, rz/sz
Outstanding problems:
1) If there are >1024 cylinders, then FreeBSD cannot boot unless installed
at cylinder 0 (and since neither can DOS evidently, the two can't share
a disk in this case).
2) If FreeBSD is installed at cylinder 0, subsequent installs tend to fail.
3) If a DOS partition exists, disklabel doesn't seem to update the disk
geometry in the FreeBSD disklabel correctly (so reinstalling FreeBSD with
a new geometry requires installing it at cylinder 0). Rod suggested
invoking disklabel on the raw c-partition. This makes sense, but it
doesn't seem to work (newfs, for instance, can't find the new label).
1993-09-07 12:02:11 +00:00
|
|
|
|
|
1993-09-13 02:23:55 +00:00
|
|
|
|
for i in $*; do
|
|
|
|
|
/tmp/cat "$i"* |
|
|
|
|
|
/tmp/gunzip |
|
|
|
|
|
(cd / ; /tmp/tar --extract --file - --preserve-permissions ${tarverbose} )
|
|
|
|
|
done
|
1993-09-16 00:45:34 +00:00
|
|
|
|
rm -f /tmp/cat /tmp/gunzip /tmp/tar
|
1993-08-11 12:51:37 +00:00
|
|
|
|
sync
|
|
|
|
|
}
|
|
|
|
|
configure()
|
|
|
|
|
{
|
1993-09-11 06:03:37 +00:00
|
|
|
|
echo "You will now be prompted for information about this"
|
1993-08-11 12:51:37 +00:00
|
|
|
|
echo "machine. If you hit return, the default answer (in"
|
|
|
|
|
echo "brackets) will be used."
|
|
|
|
|
|
1993-09-11 06:03:37 +00:00
|
|
|
|
echo
|
1993-08-11 12:51:37 +00:00
|
|
|
|
echo -n "What is this machine's hostname? [unknown.host.domain] "
|
|
|
|
|
read hname
|
|
|
|
|
|
|
|
|
|
if [ "$hname" = "" ]; then
|
|
|
|
|
hname=unknown.host.domain
|
|
|
|
|
fi
|
|
|
|
|
echo $hname > /etc/myname
|
|
|
|
|
proto_domain=`echo $hname | sed -e 's/[^.]*\.//'`
|
|
|
|
|
|
1993-09-11 06:03:37 +00:00
|
|
|
|
echo
|
|
|
|
|
echo "What domain is this machine in (this is NOT its YP"
|
1993-08-11 12:51:37 +00:00
|
|
|
|
echo -n "domain name)? [$proto_domain] "
|
|
|
|
|
read dname
|
|
|
|
|
|
|
|
|
|
if [ "$dname" = "" ]; then
|
|
|
|
|
dname=$proto_domain
|
|
|
|
|
fi
|
|
|
|
|
|
1993-09-11 06:03:37 +00:00
|
|
|
|
echo
|
1993-08-11 12:51:37 +00:00
|
|
|
|
echo -n "Does this machine have an ethernet interface? [y] "
|
|
|
|
|
read resp
|
|
|
|
|
case "$resp" in
|
Added DOS partition support and maybe badblock remappping.
The following additional changes are needed for the new install disks:
1) Remove from filesystem disk's /filelist: bin/cat, dev/MAKEDEV.local.
2) Remove from the filesystem disk: /bin/cat, /COPYRIGHT and /dev/MAKEDEV.local.
3) Add to the filesystem disk: /sbin/fdisk, /dev/fd1a and /dev/rfd1a.
4) Build a fourth DOS disk containing at least: os-bs, rz/sz
Outstanding problems:
1) If there are >1024 cylinders, then FreeBSD cannot boot unless installed
at cylinder 0 (and since neither can DOS evidently, the two can't share
a disk in this case).
2) If FreeBSD is installed at cylinder 0, subsequent installs tend to fail.
3) If a DOS partition exists, disklabel doesn't seem to update the disk
geometry in the FreeBSD disklabel correctly (so reinstalling FreeBSD with
a new geometry requires installing it at cylinder 0). Rod suggested
invoking disklabel on the raw c-partition. This makes sense, but it
doesn't seem to work (newfs, for instance, can't find the new label).
1993-09-07 12:02:11 +00:00
|
|
|
|
n*)
|
1993-09-11 06:03:37 +00:00
|
|
|
|
;;
|
|
|
|
|
*)
|
1993-08-11 12:51:37 +00:00
|
|
|
|
intf=
|
|
|
|
|
while [ "$intf" = "" ]; do
|
|
|
|
|
echo -n "What is the primary interface name (i.e. we0, etc.)? "
|
|
|
|
|
read intf
|
|
|
|
|
done
|
|
|
|
|
echo -n "What is the hostname for this interface? [$hname] "
|
|
|
|
|
read ifname
|
|
|
|
|
if [ "$ifname" = "" ]; then
|
|
|
|
|
ifname=$hname
|
|
|
|
|
fi
|
|
|
|
|
ifaddr=
|
|
|
|
|
while [ "$ifaddr" = "" ]; do
|
|
|
|
|
echo -n "What is the IP address associated with this interface? "
|
|
|
|
|
read ifaddr
|
|
|
|
|
done
|
|
|
|
|
echo "$ifaddr $ifname `echo $ifname | sed -e s/\.$dname//`" \
|
|
|
|
|
>> /etc/hosts
|
|
|
|
|
|
|
|
|
|
echo -n "Does this interface have a special netmask? [n] "
|
|
|
|
|
read resp
|
|
|
|
|
case "$resp" in
|
Added DOS partition support and maybe badblock remappping.
The following additional changes are needed for the new install disks:
1) Remove from filesystem disk's /filelist: bin/cat, dev/MAKEDEV.local.
2) Remove from the filesystem disk: /bin/cat, /COPYRIGHT and /dev/MAKEDEV.local.
3) Add to the filesystem disk: /sbin/fdisk, /dev/fd1a and /dev/rfd1a.
4) Build a fourth DOS disk containing at least: os-bs, rz/sz
Outstanding problems:
1) If there are >1024 cylinders, then FreeBSD cannot boot unless installed
at cylinder 0 (and since neither can DOS evidently, the two can't share
a disk in this case).
2) If FreeBSD is installed at cylinder 0, subsequent installs tend to fail.
3) If a DOS partition exists, disklabel doesn't seem to update the disk
geometry in the FreeBSD disklabel correctly (so reinstalling FreeBSD with
a new geometry requires installing it at cylinder 0). Rod suggested
invoking disklabel on the raw c-partition. This makes sense, but it
doesn't seem to work (newfs, for instance, can't find the new label).
1993-09-07 12:02:11 +00:00
|
|
|
|
y*)
|
|
|
|
|
echo -n "What is the netmask? [0xffffff00] "
|
|
|
|
|
read ifnetmask
|
|
|
|
|
if [ "$ifnetmask" = "" ]; then
|
|
|
|
|
ifnetmask=0xffffff00
|
|
|
|
|
fi
|
|
|
|
|
;;
|
|
|
|
|
*)
|
|
|
|
|
ifnetmask=
|
|
|
|
|
;;
|
1993-08-11 12:51:37 +00:00
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
echo -n "Does this interface need additional flags? [n] "
|
|
|
|
|
read resp
|
|
|
|
|
case "$resp" in
|
Added DOS partition support and maybe badblock remappping.
The following additional changes are needed for the new install disks:
1) Remove from filesystem disk's /filelist: bin/cat, dev/MAKEDEV.local.
2) Remove from the filesystem disk: /bin/cat, /COPYRIGHT and /dev/MAKEDEV.local.
3) Add to the filesystem disk: /sbin/fdisk, /dev/fd1a and /dev/rfd1a.
4) Build a fourth DOS disk containing at least: os-bs, rz/sz
Outstanding problems:
1) If there are >1024 cylinders, then FreeBSD cannot boot unless installed
at cylinder 0 (and since neither can DOS evidently, the two can't share
a disk in this case).
2) If FreeBSD is installed at cylinder 0, subsequent installs tend to fail.
3) If a DOS partition exists, disklabel doesn't seem to update the disk
geometry in the FreeBSD disklabel correctly (so reinstalling FreeBSD with
a new geometry requires installing it at cylinder 0). Rod suggested
invoking disklabel on the raw c-partition. This makes sense, but it
doesn't seem to work (newfs, for instance, can't find the new label).
1993-09-07 12:02:11 +00:00
|
|
|
|
y*)
|
|
|
|
|
echo -n "What flags? [llc0] "
|
|
|
|
|
read ifflags
|
|
|
|
|
if [ "$ifflags" = "" ]; then
|
|
|
|
|
ifflags=llc0
|
|
|
|
|
fi
|
|
|
|
|
;;
|
|
|
|
|
*)
|
|
|
|
|
ifflags=
|
|
|
|
|
;;
|
1993-08-11 12:51:37 +00:00
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
echo "inet $ifname $ifnetmask $ifflags" > /etc/hostname.$intf
|
|
|
|
|
|
1993-09-11 06:03:37 +00:00
|
|
|
|
echo ""
|
|
|
|
|
echo "WARNING: if you have any more ethernet interfaces, you"
|
1993-08-11 12:51:37 +00:00
|
|
|
|
echo "will have to configure them by hand. Read the comments"
|
|
|
|
|
echo "in /etc/netstart to learn how to do this"
|
1993-09-11 06:03:37 +00:00
|
|
|
|
;;
|
1993-08-11 12:51:37 +00:00
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
sync
|
|
|
|
|
|
1993-09-11 06:03:37 +00:00
|
|
|
|
echo
|
1993-08-11 12:51:37 +00:00
|
|
|
|
echo "OK. You should be completely set up now."
|
|
|
|
|
echo "You should now reboot your machine by issuing the 'reboot' command"
|
|
|
|
|
echo "after removing anything that happens to be in your floppy drive."
|
|
|
|
|
}
|