mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
Augment $PATH to ensure searching of /sbin and /usr/sbin for sysctl
instead of using an absolute path to sysctl. Problem reported by: ache
This commit is contained in:
parent
5ce43a5e9b
commit
8cd077a7fd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=31846
@ -1,7 +1,7 @@
|
||||
# Makefile.i386 -- with config changes.
|
||||
# Copyright 1990 W. Jolitz
|
||||
# from: @(#)Makefile.i386 7.1 5/10/91
|
||||
# $Id: Makefile.i386,v 1.104 1997/11/03 21:48:31 guido Exp $
|
||||
# $Id: Makefile.i386,v 1.105 1997/11/06 03:11:30 msmith Exp $
|
||||
#
|
||||
# Makefile for FreeBSD
|
||||
#
|
||||
@ -201,8 +201,9 @@ install:
|
||||
fi
|
||||
chflags noschg /kernel
|
||||
mv /kernel /kernel.old
|
||||
if [ `/usr/sbin/sysctl -n kern.bootfile` = /kernel ] ; then \
|
||||
/usr/sbin/sysctl -w kern.bootfile=/kernel.old ; \
|
||||
PATH=$${PATH}:/sbin:/usr/sbin; \
|
||||
if [ `sysctl -n kern.bootfile` = /kernel ] ; then \
|
||||
sysctl -w kern.bootfile=/kernel.old ; \
|
||||
if [ -f /var/db/kvm_kernel.db ] ; then \
|
||||
mv -f /var/db/kvm_kernel.db /var/db/kvm_kernel.old.db ; \
|
||||
fi \
|
||||
|
@ -1,7 +1,7 @@
|
||||
# Makefile.i386 -- with config changes.
|
||||
# Copyright 1990 W. Jolitz
|
||||
# from: @(#)Makefile.i386 7.1 5/10/91
|
||||
# $Id: Makefile.i386,v 1.104 1997/11/03 21:48:31 guido Exp $
|
||||
# $Id: Makefile.i386,v 1.105 1997/11/06 03:11:30 msmith Exp $
|
||||
#
|
||||
# Makefile for FreeBSD
|
||||
#
|
||||
@ -201,8 +201,9 @@ install:
|
||||
fi
|
||||
chflags noschg /kernel
|
||||
mv /kernel /kernel.old
|
||||
if [ `/usr/sbin/sysctl -n kern.bootfile` = /kernel ] ; then \
|
||||
/usr/sbin/sysctl -w kern.bootfile=/kernel.old ; \
|
||||
PATH=$${PATH}:/sbin:/usr/sbin; \
|
||||
if [ `sysctl -n kern.bootfile` = /kernel ] ; then \
|
||||
sysctl -w kern.bootfile=/kernel.old ; \
|
||||
if [ -f /var/db/kvm_kernel.db ] ; then \
|
||||
mv -f /var/db/kvm_kernel.db /var/db/kvm_kernel.old.db ; \
|
||||
fi \
|
||||
|
@ -1,7 +1,7 @@
|
||||
# Makefile.i386 -- with config changes.
|
||||
# Copyright 1990 W. Jolitz
|
||||
# from: @(#)Makefile.i386 7.1 5/10/91
|
||||
# $Id: Makefile.i386,v 1.104 1997/11/03 21:48:31 guido Exp $
|
||||
# $Id: Makefile.i386,v 1.105 1997/11/06 03:11:30 msmith Exp $
|
||||
#
|
||||
# Makefile for FreeBSD
|
||||
#
|
||||
@ -201,8 +201,9 @@ install:
|
||||
fi
|
||||
chflags noschg /kernel
|
||||
mv /kernel /kernel.old
|
||||
if [ `/usr/sbin/sysctl -n kern.bootfile` = /kernel ] ; then \
|
||||
/usr/sbin/sysctl -w kern.bootfile=/kernel.old ; \
|
||||
PATH=$${PATH}:/sbin:/usr/sbin; \
|
||||
if [ `sysctl -n kern.bootfile` = /kernel ] ; then \
|
||||
sysctl -w kern.bootfile=/kernel.old ; \
|
||||
if [ -f /var/db/kvm_kernel.db ] ; then \
|
||||
mv -f /var/db/kvm_kernel.db /var/db/kvm_kernel.old.db ; \
|
||||
fi \
|
||||
|
Loading…
Reference in New Issue
Block a user