From: deraadt Date: Mon, 10 Feb 1997 16:42:53 +0000 (+0000) Subject: catch up to i386 install.sh X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=9f5ed37f70048440ca81c517373a5c0d1006bedc;p=openbsd catch up to i386 install.sh --- diff --git a/distrib/sparc/floppies/inst/install.sh b/distrib/sparc/floppies/inst/install.sh index 8c79b826892..66b1685fa42 100644 --- a/distrib/sparc/floppies/inst/install.sh +++ b/distrib/sparc/floppies/inst/install.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $OpenBSD: install.sh,v 1.6 1996/12/09 07:06:58 tholo Exp $ +# $OpenBSD: install.sh,v 1.7 1997/02/10 16:42:53 deraadt Exp $ # # Copyright (c) 1994 Christopher G. Demetriou # All rights reserved. @@ -146,20 +146,32 @@ esac echo "You will now enter the disk geometry information" echo "" -echo -n "Number of bytes per disk sector? [512] " -getresp 512 +bytes_per_sect=`cat /kern/msgbuf \ + | sed -n -e /^${drivename}:/p -e /^${drivename}:/q \ + | awk '{ print $9 }'` +echo -n "Number of bytes per disk sector? [$bytes_per_sect] " +getresp $bytes_per_sect bytes_per_sect="$resp" -echo -n "Number of disk cylinders? " -getresp +cyls_per_disk=`cat /kern/msgbuf \ + | sed -n -e /^${drivename}:/p -e /^${drivename}:/q \ + | awk '{ print $3 }'` +echo -n "Number of disk cylinders? [$cyls_per_disk]" +getresp $cyls_per_disk cyls_per_disk="$resp" -echo -n "Number of disk tracks (heads) per disk cylinder? " -getresp +tracks_per_cyl=`cat /kern/msgbuf \ + | sed -n -e /^${drivename}:/p -e /^${drivename}:/q \ + | awk '{ print $5 }'` +echo -n "Number of disk tracks (heads) per disk cylinder? [$tracks_per_cyl]" +getresp $tracks_per_cyl tracks_per_cyl="$resp" -echo -n "Number of disk sectors per disk track? " -getresp +sects_per_track=`cat /kern/msgbuf \ + | sed -n -e /^${drivename}:/p -e /^${drivename}:/q \ + | awk '{ print $7 }'` +echo -n "Number of disk sectors per disk track? [$sects_per_track]" +getresp $sects_per_track sects_per_track="$resp" cylindersize=`expr $sects_per_track \* $tracks_per_cyl`