summaryrefslogtreecommitdiffstats
path: root/sys/i386/conf
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1996-01-07 22:31:27 +0000
committerphk <phk@FreeBSD.org>1996-01-07 22:31:27 +0000
commitff1d9d2c0c4efcdd7a698f56b444eb931b1d64a5 (patch)
tree0b595311e83925cd064e0efff943b997a5426763 /sys/i386/conf
parentbdd1ce3cabfbef5966cf0d529b2bfc1a55ffb01f (diff)
downloadFreeBSD-src-ff1d9d2c0c4efcdd7a698f56b444eb931b1d64a5.zip
FreeBSD-src-ff1d9d2c0c4efcdd7a698f56b444eb931b1d64a5.tar.gz
Only change the sysctl variable if it presently points to /kernel.
Diffstat (limited to 'sys/i386/conf')
-rw-r--r--sys/i386/conf/Makefile.i3866
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/i386/conf/Makefile.i386 b/sys/i386/conf/Makefile.i386
index 49ea3b2..c998594 100644
--- a/sys/i386/conf/Makefile.i386
+++ b/sys/i386/conf/Makefile.i386
@@ -1,6 +1,6 @@
# Copyright 1990 W. Jolitz
# from: @(#)Makefile.i386 7.1 5/10/91
-# $Id: Makefile.i386,v 1.72 1995/12/26 13:57:55 bde Exp $
+# $Id: Makefile.i386,v 1.73 1996/01/05 18:30:10 wollman Exp $
#
# Makefile for FreeBSD
#
@@ -155,7 +155,9 @@ tags:
install:
chflags noschg /kernel
mv /kernel /kernel.old
- sysctl -w kern.bootfile=/kernel.old
+ if [ `sysctl -n kern.bootfile` = "/kernel" ] ; then \
+ sysctl -w kern.bootfile=/kernel.old ; \
+ fi
install -c -m 555 -o root -g wheel -fschg kernel /
ioconf.o: ioconf.c $S/sys/param.h machine/pte.h $S/sys/buf.h \
OpenPOWER on IntegriCloud