Only change the sysctl variable if it presently points to /kernel.

This commit is contained in:
Poul-Henning Kamp
1996-01-07 22:31:27 +00:00
parent 08f9c42211
commit 3b3f55c76f
3 changed files with 12 additions and 6 deletions
+4 -2
View File
@@ -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 \
+4 -2
View File
@@ -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 \
+4 -2
View File
@@ -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 \