1
0
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:
Bruce Evans 1997-12-18 21:03:04 +00:00
parent 5ce43a5e9b
commit 8cd077a7fd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=31846
3 changed files with 12 additions and 9 deletions

View File

@ -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 \

View File

@ -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 \

View File

@ -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 \