Converted many occurances of multiple spaces to tabs to save bytes

any way I can.  Converted all echo "" to be just echo

Removed sync call that seems to hang due to fd/wd driver interaction..
Now rm /.profile before the cpio floppy is copied in, this should fix
a bugger I was having with an open shell script that gets over written.
This commit is contained in:
Rodney W. Grimes 1993-09-11 06:03:37 +00:00
parent 3f0cc05d5a
commit d92c47dabf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=437
3 changed files with 65 additions and 63 deletions

View File

@ -308,9 +308,9 @@ fi
}
echo "Welcome to ${OPSYSTEM}."
echo "Welcome to ${OPSYSTEM}."
echo
echo "This program is designed to help put ${OPSYSTEM} on a hard disk with"
echo "This program is designed to help put ${OPSYSTEM} on a hard disk with"
echo "at least $DISKMIN Megabytes of free space."
echo
echo "If other operating systems are already on the disk, ${OPSYSTEM}"
@ -330,7 +330,7 @@ resp=${resp:-y}
case "$resp" in
y*|Y*)
echo
echo "Cool! Let's get to it..."
echo "Cool! Let's get to it..."
echo
echo "If a mistake is made along the way, don't bail out."
echo "At the end, you have the option to redo the configuration."
@ -339,9 +339,9 @@ y*|Y*)
;;
*)
echo
echo "OK, then. Enter \`halt' to halt the machine."
echo "Once the machine has halted, remove the floppy,"
echo "and press any key to reboot."
echo "OK, then. Enter \`halt' to halt the machine."
echo "Once the machine has halted, remove the floppy,"
echo "and press any key to reboot."
exit
;;
esac
@ -356,7 +356,7 @@ drivename=wd0
drivetype=wd
sect_fwd=""
echo
echo "First, we need to know the drive type. This can be can be one of"
echo "First, we need to know the drive type. This can be can be one of"
echo "ESDI, SCSI, ST506, or IDE."
echo -n "Drive type? [${type:-IDE}] "
read resp junk
@ -394,10 +394,10 @@ sc*|SC*)
;;
esac
echo
echo "Disk is of device type $drivetype."
echo "Disk is of device type $drivetype."
if [ ! "$partition" ]; then
echo
echo "Please wait. Examining device /dev/r${drivename}d..."
echo "Please wait. Examining device /dev/r${drivename}d..."
get_fdisk_data
if [ $? -gt 1 ]; then
echo "Hm - we can't seem to read that drive."
@ -560,7 +560,7 @@ blocking_factor=${resp:-${blocking_factor:-${DEFBLOCKING}}}
fragsize=`expr $bytes_per_sect \* $blocking_factor`
blocksize=`expr $bytes_per_sect \* $blocking_factor \* 8`
echo
echo "$mb_left Mb ($cyl_left cylinders) remaining in ${OPSYSTEM} portion of disk."
echo "$mb_left Mb ($cyl_left cylinders) remaining in ${OPSYSTEM} portion of disk."
echo
echo "Minimum swap space is ${swap_cyls_min} cylinders."
echo "For running X, if your RAM size is NR Mb, then the recomended swap"
@ -596,16 +596,16 @@ done
echo
swap_offset=`expr $root_offset + $root`
part_used=`expr $part_used + $swap`
echo "" >/etc/disktab
echo "$name|${OPSYSTEM} installation generated:\\" >>/etc/disktab
echo " :dt=${type}:ty=winchester:\\" >>/etc/disktab
echo "" >/etc/disktab
echo "$name|${OPSYSTEM} installation generated:\\" >>/etc/disktab
echo " :dt=${type}:ty=winchester:\\" >>/etc/disktab
echo -n " :nc#${cyls_per_disk}:ns#${sects_per_track}" >>/etc/disktab
echo ":nt#${tracks_per_cyl}:\\" >>/etc/disktab
echo " :se#${bytes_per_sect}:${sect_fwd}\\" >>/etc/disktab
echo ":nt#${tracks_per_cyl}:\\" >>/etc/disktab
echo " :se#${bytes_per_sect}:${sect_fwd}\\" >>/etc/disktab
echo -n " :pa#${root}:oa#${root_offset}" >>/etc/disktab
echo ":ta=4.2BSD:ba#${blocksize}:fa#${fragsize}:\\" >>/etc/disktab
echo " :pb#${swap}:ob#${swap_offset}:tb=swap:\\" >>/etc/disktab
echo " :pc#${partition}:oc#${part_offset}:\\" >>/etc/disktab
echo ":ta=4.2BSD:ba#${blocksize}:fa#${fragsize}:\\" >>/etc/disktab
echo " :pb#${swap}:ob#${swap_offset}:tb=swap:\\" >>/etc/disktab
echo " :pc#${partition}:oc#${part_offset}:\\" >>/etc/disktab
ename="";fname="";gname="";hname=""
if [ $part_used -lt $partition ]; then
echo
@ -620,7 +620,7 @@ while [ $part_used -lt $partition ]; do
cyl_left=`expr $whats_left / $cylindersize`
mb_left=`expr $whats_left / $mb_sect`
echo
echo "$mb_left Mb ($cyl_left cylinders) remaining in ${OPSYSTEM} portion of disk."
echo "$mb_left Mb ($cyl_left cylinders) remaining in ${OPSYSTEM} portion of disk."
echo
while :; do
echo -n "Next partition size (in cylinders)? [${cyl_left}] "
@ -669,7 +669,7 @@ while [ $part_used -lt $partition ]; do
fi
done
echo " :pd#${disksize}:od#0:" >>/etc/disktab
echo " :pd#${disksize}:od#0:" >>/etc/disktab
sync
# cat /etc/disktab
@ -696,7 +696,7 @@ esac
echo
echo "OK! THIS IS THE LAST CHANCE!!! Data on the hard disk wil be lost."
echo "OK! THIS IS THE LAST CHANCE!!! Data on the hard disk wil be lost."
echo -n "Are you sure you want to install on the hard drive? (yes/no) "
resp=""
while [ ! "$resp" ]; do
@ -705,7 +705,7 @@ while [ ! "$resp" ]; do
Yes|yes|YES)
verified_install=1
echo
echo "OK! Here we go..."
echo "OK! Here we go..."
;;
No|no|NO)
echo
@ -717,9 +717,9 @@ while [ ! "$resp" ]; do
;;
*)
echo
echo "OK, then. Enter 'halt' to halt the machine."
echo "Once the machine has halted, remove the floppy,"
echo "and press any key to reboot."
echo "OK, then. Enter 'halt' to halt the machine."
echo "Once the machine has halted, remove the floppy,"
echo "and press any key to reboot."
exit
;;
esac
@ -739,7 +739,7 @@ echo
echo -n "Labelling disk..."
echo y |
/sbin/disklabel -w -r ${drivename} $name /usr/mdec/${drivetype}boot /usr/mdec/boot${drivetype} >/dev/null 2>&1
echo " done."
echo " done."
if [ "$sect_fwd" = "sf:" ]; then
echo -n "Initializing bad144 badblock table..."
@ -757,33 +757,33 @@ if [ "$sect_fwd" = "sf:" ]; then
echo " done."
fi
echo "Initializing root filesystem, and mounting..."
echo "Initializing root filesystem, and mounting..."
newfs ${rotdelay} /dev/r${drivename}a $name
mount -v /dev/${drivename}a /mnt
if [ "$ename" != "" ]; then
echo
echo "Initializing $ename filesystem, and mounting..."
echo "Initializing $ename filesystem, and mounting..."
newfs ${rotdelay} /dev/r${drivename}e $name
mkdir -p /mnt/$ename
mount -v /dev/${drivename}e /mnt/$ename
fi
if [ "$fname" != "" ]; then
echo
echo "Initializing $fname filesystem, and mounting..."
echo "Initializing $fname filesystem, and mounting..."
newfs ${rotdelay} /dev/r${drivename}f $name
mkdir -p /mnt/$fname
mount -v /dev/${drivename}f /mnt/$fname
fi
if [ "$gname" != "" ]; then
echo
echo "Initializing $gname filesystem, and mounting..."
echo "Initializing $gname filesystem, and mounting..."
newfs ${rotdelay} /dev/r${drivename}g $name
mkdir -p /mnt/$gname
mount -v /dev/${drivename}g /mnt/$gname
fi
if [ "$hname" != "" ]; then
echo
echo "Initializing $hname filesystem, and mounting..."
echo "Initializing $hname filesystem, and mounting..."
newfs ${rotdelay} /dev/r${drivename}h $name
mkdir -p /mnt/$hname
mount -v /dev/${drivename}h /mnt/$hname
@ -800,7 +800,6 @@ while read data; do
echo $data
done <filelist | cpio -pdamu${cpioverbose} /mnt
IFS=$OIFS
sync
cd /mnt
echo "/dev/${drivename}a / ufs rw 1 1" >etc/fstab
@ -836,8 +835,8 @@ echo "TERM=pc3"
echo "export TERM"
echo "mount -at ufs"
echo "echo"
echo "echo \"Insert second installation floppy in drive and\""
echo "echo -n \"enter that drive's number (e.g. 0 or 1): [0] \""
echo "echo \"Insert second installation floppy in drive and\""
echo "echo -n \"enter that drive's number (e.g. 0 or 1): [0] \""
echo "read resp junk"
echo "driveno=\${resp:-0}"
echo "mount -o ro /dev/fd\${driveno}a /mnt"
@ -846,8 +845,8 @@ echo "install"
echo "cd /"
echo "umount /mnt >/dev/null 2>&1"
echo "echo"
echo "echo \"Now insert third installation floppy in drive and\""
echo "echo -n \"enter that drive's number (e.g. 0 or 1): [0] \""
echo "echo \"Now insert third installation floppy in drive and\""
echo "echo -n \"enter that drive's number (e.g. 0 or 1): [0] \""
echo "read resp junk"
echo "driveno=\${resp:-0}"
echo "mount -t pcfs -o ro /dev/fd\${driveno}a /mnt"
@ -856,12 +855,12 @@ echo "cp /mnt/* /usr/distbin/"
echo "sync"
echo "umount /mnt >/dev/null 2>&1"
echo "echo"
echo "echo \"OK. All of the base files are installed.\""
echo "echo \"OK. All of the base files are installed.\""
echo "echo"
echo "echo \"The next step: reboot from the hard disk, and follow\""
echo "echo \"more instrutctions.\""
echo "echo \"The next step: reboot from the hard disk, and follow\""
echo "echo \"more instrutctions.\""
echo "echo"
echo "echo \"To do this, enter 'halt' at the prompt to halt the machine.\""
echo "echo \"To do this, enter 'halt' at the prompt to halt the machine.\""
echo "echo \"Once the machine has halted, remove the floppy from the disk\""
echo "echo \"drive, and hit any key to reboot from the hard disk.\""
) >.profile
@ -869,10 +868,10 @@ echo "echo \"drive, and hit any key to reboot from the hard disk.\""
sync
echo
echo "The next step: reboot from the kernel-copy disk, copy a kernel"
echo "to the hard disk, and finally reboot from the hard disk."
echo "The next step: reboot from the kernel-copy disk, copy a kernel"
echo "to the hard disk, and finally reboot from the hard disk."
echo
echo "To do this, enter 'halt' now to halt the machine. After it"
echo "To do this, enter 'halt' now to halt the machine. After it"
echo "announces that it has halted, remove the floppy from the drive"
echo "and insert the kernel-copy disk that was booted before."
echo "Press any key to reboot. When prompted to insert the filesystem"

View File

@ -22,6 +22,9 @@ esac
echo
echo "Please wait. Copying to disk..."
# remove /.profile so that the right things happen when it gets
# over written
rm /.profile
cd /
mnt/usr/bin/gunzip < mnt/inst2.cpio.gz | cpio -idmu${cpioverbose}
cd /mnt

View File

@ -23,7 +23,7 @@ else
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"
echo ""
echo
echo "Halting... press return after the system has halted to"
echo "boot from the hard disk again."
halt
@ -67,25 +67,25 @@ export TERM
echo "${OPSYSTEM} Base System Release ${RELEASE}"
echo ""
echo "Congratulations, you've got ${OPSYSTEM} on the hard disk!"
echo ""
echo
echo "Press the return key for more installation instructions"
read junkit
echo ""
echo
echo "To finish installation:"
echo "Pick a temporary directory by running set_tmp_dir. Make sure it's"
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:"
echo ""
echo " load_fd load_qic_tape load_scsi_tape"
echo ""
echo
echo " load_fd load_qic_tape load_scsi_tape"
echo
echo "or by fetching the files with ftp (see the installation notes for"
echo "information on how to do that)."
echo ""
echo
echo "Once this is complete, extract the distribution files by issuing the"
echo "command 'extract <distribution>' where <distribution> is the base name"
echo "of the distribution files, e.g. 'base10'."
echo ""
echo
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 " "
@ -167,7 +167,7 @@ load_fd()
device=/dev/fd0a
[ "$drive" = "B" ] && device=/dev/fd1a
echo; echo "Insert floppy in drive $drive: and press RETURN,"
echo -n "or enter option (? for help): "
echo -n "or enter option (? for help): "
read answer junk
[ ! "$answer" ] && answer=c
case "$answer" in
@ -267,11 +267,11 @@ extract()
}
configure()
{
echo "You will now be prompted for information about this"
echo "You will now be prompted for information about this"
echo "machine. If you hit return, the default answer (in"
echo "brackets) will be used."
echo ""
echo
echo -n "What is this machine's hostname? [unknown.host.domain] "
read hname
@ -281,8 +281,8 @@ configure()
echo $hname > /etc/myname
proto_domain=`echo $hname | sed -e 's/[^.]*\.//'`
echo ""
echo "What domain is this machine in (this is NOT its YP"
echo
echo "What domain is this machine in (this is NOT its YP"
echo -n "domain name)? [$proto_domain] "
read dname
@ -290,13 +290,13 @@ configure()
dname=$proto_domain
fi
echo ""
echo
echo -n "Does this machine have an ethernet interface? [y] "
read resp
case "$resp" in
n*)
;;
*)
;;
*)
intf=
while [ "$intf" = "" ]; do
echo -n "What is the primary interface name (i.e. we0, etc.)? "
@ -347,16 +347,16 @@ configure()
echo "inet $ifname $ifnetmask $ifflags" > /etc/hostname.$intf
echo ""
echo "WARNING: if you have any more ethernet interfaces, you"
echo ""
echo "WARNING: if you have any more ethernet interfaces, you"
echo "will have to configure them by hand. Read the comments"
echo "in /etc/netstart to learn how to do this"
;;
;;
esac
sync
echo ""
echo
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."