Syntax errors corrected

Add support for Sony CDROM
This commit is contained in:
Jordan K. Hubbard 1995-01-28 09:04:12 +00:00
parent 8ed9cf223f
commit 02c931e63b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=5986
2 changed files with 11 additions and 6 deletions

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $Id: extract.sh,v 1.17 1994/12/04 03:41:18 jkh Exp $
# $Id: extract_bin.sh,v 1.1 1995/01/14 07:41:39 jkh Exp $
PATH=/stand:$PATH
DDIR=/
@ -11,7 +11,7 @@ if [ -f $DDIR/etc/defaultrouter ]; then
cp $DDIR/etc/defaultrouter $DDIR/stand/etc
fi
echo; echo "Extracting bindist, please wait."
cat bindist.?? | gzip -c -d | ( cd $DDIR; cpio -H tar -imdu )
cat bin.?? | gzip -c -d | ( cd $DDIR; cpio -H tar -imdu )
if [ -f $DDIR/stand/etc/myname ]; then
# Add back what the bindist nuked.
cp $DDIR/stand/etc/myname $DDIR/etc

View File

@ -10,7 +10,7 @@
# putting your name on top after doing something trivial like reindenting
# it, just to make it look like you wrote it!).
#
# $Id: instdist.sh,v 1.2 1995/01/27 07:37:53 jkh Exp $
# $Id: instdist.sh,v 1.3 1995/01/28 01:18:42 jkh Exp $
if [ "${_INSTINST_SH_LOADED_}" = "yes" ]; then
return 0
@ -193,7 +193,7 @@ media_extract_dist()
fi
fi
if [ -f do_cksum.sh ]; then
message "Verifying checksums for distribution. Please wait!"
message "Verifying checksums for ${MEDIA_DISTRIBUTION} distribution. Please wait!"
if sh ./do_cksum.sh; then
if [ -f extract.sh ]; then
message "Extracting ${MEDIA_DISTRIBUTION} distribution. Please wait!"
@ -210,7 +210,7 @@ media_extract_dist()
error "Checksum error(s) found. Please check media!"
fi
else
error "Improper distribution. No checksum script found!"
error "Improper ${MEDIA_DISTRIBUTION} distribution. No checksum script!"
media_reset
fi
}
@ -447,7 +447,8 @@ correct value and press return."; then
"Which type of CDROM drive do you have attached to your \n\
system? FreeBSD supports the following types:\n" -1 -1 2 \
"SCSI" "SCSI CDROM drive attached to supported SCSI controller" \
"Mitsumi" "Mitsumi CDROM drive" \
"Sony" "Sony CDU33 or compatible CDROM drive" \
"Mitsumi" "Mitsumi CDROM (non-IDE) drive" \
2> ${TMP}/menu.tmp.$$
RETVAL=$?
CHOICE=`cat ${TMP}/menu.tmp.$$`
@ -459,6 +460,10 @@ system? FreeBSD supports the following types:\n" -1 -1 2 \
MEDIA_DEVICE=/dev/cd0a
;;
Sony)
MEDIA_DEVICE=/dev/scd0a
;;
Mitsumi)
MEDIA_DEVICE=/dev/mcd0a
;;