From 48d3dba576d9a3c4f87e56e191bd848b13edb13d Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sat, 28 Feb 1998 02:52:09 +0000 Subject: Be consistent wrt suggesting ESDI for IDE and using ESDI even if they enter IDE. --- sbin/disklabel/editor.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'sbin/disklabel') diff --git a/sbin/disklabel/editor.c b/sbin/disklabel/editor.c index fe8f84a2550..0ad6e2b00c2 100644 --- a/sbin/disklabel/editor.c +++ b/sbin/disklabel/editor.c @@ -1,4 +1,4 @@ -/* $OpenBSD: editor.c,v 1.30 1998/02/19 20:43:37 deraadt Exp $ */ +/* $OpenBSD: editor.c,v 1.31 1998/02/28 02:52:08 millert Exp $ */ /* * Copyright (c) 1997 Todd C. Miller @@ -31,7 +31,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: editor.c,v 1.30 1998/02/19 20:43:37 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: editor.c,v 1.31 1998/02/28 02:52:08 millert Exp $"; #endif /* not lint */ #include @@ -1589,10 +1589,16 @@ getdisktype(lp, banner) for (;;) { s = getstring(lp, "Disk type", - "What kind of disk is this? Usually SCSI, ST506, or floppy (use ST506 for IDE).", + "What kind of disk is this? Usually SCSI, ESDI, " + "ST506, or floppy (use ESDI for IDE).", "SCSI"); if (s == NULL) continue; + if (strcasecmp(s, "IDE") == 0) { + lp->d_type = DTYPE_ESDI; + putchar('\n'); + return; + } for (i = 1; i < DKMAXTYPES; i++) if (strcasecmp(s, dktypenames[i]) == 0) { lp->d_type = i; -- cgit v1.2.3