From 01070777efb6acb4a0b5071bcf5ece2f5e12bf78 Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Tue, 4 Mar 1997 03:27:41 +0000 Subject: [PATCH] modified for recent FreeBSD --- freebsd-2.0/kinstall.sh | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/freebsd-2.0/kinstall.sh b/freebsd-2.0/kinstall.sh index ae90a05..7c6df86 100755 --- a/freebsd-2.0/kinstall.sh +++ b/freebsd-2.0/kinstall.sh @@ -4,9 +4,15 @@ # ppp-2.3. It is intended to be run in the ppp-2.3 directory. # # Paul Mackerras 17-Mar-95 +# +# Modified to match the output of the uname command for FreeBSD 2.1.0 +# and 2.1.5 (and perhaps later). +# +# John Lind (john@starfire.mn.org) 18-Nov-96 -CONF=$(uname -v | sed 's/.*(\(.*\)).*/\1/') -SYS=/sys +KPATH=$(uname -v | sed 's/.*://') +CONF=$(echo $KPATH | sed 's;.*compile/;;') +SYS=$(echo $KPATH | sed 's;/compile/.*$;;') ARCHDIR=$SYS/i386 CFILE=$ARCHDIR/conf/$CONF SRC=freebsd-2.0 @@ -77,11 +83,11 @@ elif [ $DOMAKE ]; then echo "You need to build a new kernel." echo "The procedure for doing this involves the following commands." echo - echo " cd $SYS/compile/$CONF" + echo " cd $KPATH" fi if [ $DOMAKE ]; then echo " make" echo - echo "Then copy the new kernel ($SYS/compile/$CONF/kernel) to /" + echo "Then copy the new kernel ($KPATH/kernel) to /" echo "and reboot. (Keep a copy of the old /kernel, just in case.)" fi -- 2.39.2