diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-02-28 02:52:09 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-02-28 02:52:09 +0000 |
commit | 48d3dba576d9a3c4f87e56e191bd848b13edb13d (patch) | |
tree | a68c771f3e63a6d8d33c8276f742966560d8b06b /sbin/disklabel/editor.c | |
parent | f867b7d5d7ae666adf7d1c3123aefe4a9c8485b7 (diff) |
Be consistent wrt suggesting ESDI for IDE and using ESDI even if
they enter IDE.
Diffstat (limited to 'sbin/disklabel/editor.c')
-rw-r--r-- | sbin/disklabel/editor.c | 12 |
1 files changed, 9 insertions, 3 deletions
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 <Todd.Miller@courtesan.com> @@ -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 <sys/types.h> @@ -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; |