summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-04-17 20:21:43 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-04-17 20:21:43 +0000
commit9698c4434dc738750ff328273b33c56ec57909be (patch)
treea6dd912825f6d3c6f8e9ab9739689b62b65bc051 /distrib
parent09e787efd3a90f2c8404b024e8506534d0435733 (diff)
fix msgbuf parsing
Diffstat (limited to 'distrib')
-rw-r--r--distrib/i386/floppies/ramdisk/install.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/distrib/i386/floppies/ramdisk/install.md b/distrib/i386/floppies/ramdisk/install.md
index 7b9c47e3064..9e67a6a4f06 100644
--- a/distrib/i386/floppies/ramdisk/install.md
+++ b/distrib/i386/floppies/ramdisk/install.md
@@ -1,5 +1,5 @@
#!/bin/sh
-# $OpenBSD: install.md,v 1.1 1997/04/13 17:17:54 mickey Exp $
+# $OpenBSD: install.md,v 1.2 1997/04/17 20:21:42 deraadt Exp $
#
# Copyright (c) 1994 Christopher G. Demetriou
# All rights reserved.
@@ -180,21 +180,21 @@ bytes_per_sect="$resp"
cyls_per_disk=`cat /kern/msgbuf \
| sed -n -e /^${drivename}:/p -e /^${drivename}:/q \
- | sed 's/\([^ ]*[ ]*\)\{3\}\([^ ]*\).*$/\2/'`
+ | sed 's/\([^ ]*[ ]*\)\{2\}\([^ ]*\).*$/\2/'`
echo -n "Number of disk cylinders? [$cyls_per_disk]"
getresp $cyls_per_disk
cyls_per_disk="$resp"
tracks_per_cyl=`cat /kern/msgbuf \
| sed -n -e /^${drivename}:/p -e /^${drivename}:/q \
- | sed 's/\([^ ]*[ ]*\)\{5\}\([^ ]*\).*$/\2/'`
+ | sed 's/\([^ ]*[ ]*\)\{4\}\([^ ]*\).*$/\2/'`
echo -n "Number of disk tracks (heads) per disk cylinder? [$tracks_per_cyl]"
getresp $tracks_per_cyl
tracks_per_cyl="$resp"
sects_per_track=`cat /kern/msgbuf \
| sed -n -e /^${drivename}:/p -e /^${drivename}:/q \
- | sed 's/\([^ ]*[ ]*\)\{7\}\([^ ]*\).*$/\2/'`
+ | sed 's/\([^ ]*[ ]*\)\{6\}\([^ ]*\).*$/\2/'`
echo -n "Number of disk sectors per disk track? [$sects_per_track]"
getresp $sects_per_track
sects_per_track="$resp"