From 0bf9d22953e08aedffa74ffff45a3760acbf4ae0 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Thu, 28 Apr 2005 22:28:14 +0000 Subject: [PATCH] handle new config -e non-tty input case --- src/etc/etc.sparc/Makefile.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/etc/etc.sparc/Makefile.inc b/src/etc/etc.sparc/Makefile.inc index 6bf3926e..ba829e0c 100644 --- a/src/etc/etc.sparc/Makefile.inc +++ b/src/etc/etc.sparc/Makefile.inc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.inc,v 1.12 2004/11/29 22:09:15 miod Exp $ +# $OpenBSD: Makefile.inc,v 1.13 2005/04/28 22:28:14 deraadt Exp $ # etc.sparc/Makefile.inc -- sparc-specific etc Makefile targets .ifdef DESTDIR @@ -6,7 +6,7 @@ snap_md: bsd bootblocks distrib cp ${.CURDIR}/../sys/arch/sparc/compile/GENERIC/bsd \ ${DESTDIR}/snapshot/bsd s=`printf "find sd\nexit" | config -e ${DESTDIR}/snapshot/bsd | \ - awk '/ukc/ {print $$2}'`; \ + grep scsibus | awk '{print $$1}'`; \ printf "add sd0\n%s\n%s\nchange %s\ny\n3\n\n\nquit\n" $$s $$s $$s | \ config -e -o ${DESTDIR}/snapshot/bsd.scsi3 ${DESTDIR}/snapshot/bsd