summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>1999-01-11 05:52:28 +0000
committermsmith <msmith@FreeBSD.org>1999-01-11 05:52:28 +0000
commit527d38004287b902c38fe10e89f784d7251c79b3 (patch)
tree7b92d73eeeb2878807ffc7486f1ffd5df3f11247 /sys/boot
parentc319cef85823dfc262035ce8e05b52a1f9730102 (diff)
downloadFreeBSD-src-527d38004287b902c38fe10e89f784d7251c79b3.zip
FreeBSD-src-527d38004287b902c38fe10e89f784d7251c79b3.tar.gz
Preserve the previous loader as loader.old.
Note no matching commit for the Alpha, as the alpha boot0 stage does not have the ability to prompt for user input. PR: kern/9406 Submitted by: "Daniel C. Sobral" <dcs@newsguy.com>
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/i386/loader/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/boot/i386/loader/Makefile b/sys/boot/i386/loader/Makefile
index 72ed9d4..f79ae3f 100644
--- a/sys/boot/i386/loader/Makefile
+++ b/sys/boot/i386/loader/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.25 1999/01/09 20:14:46 msmith Exp $
+# $Id: Makefile,v 1.26 1999/01/10 20:20:27 msmith Exp $
BASE= loader
PROG= ${BASE}
@@ -82,6 +82,9 @@ ${BASE}.help: help.common help.i386
perl ${.CURDIR}/../../common/merge_help.pl ${.ALLSRC} > ${.TARGET}
beforeinstall:
+.if exists(${DESTDIR}/boot/loader)
+ mv ${DESTDIR}/boot/loader ${DESTDIR}/boot/loader.old
+.endif
.if exists(${.OBJDIR}/loader.help)
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
${.OBJDIR}/${BASE}.help ${DESTDIR}/boot
OpenPOWER on IntegriCloud