From 268ac8d0b8eff12d0d1ee8ca0a3b88b80ee6221e Mon Sep 17 00:00:00 2001 From: ps Date: Thu, 1 Jul 2004 06:40:12 +0000 Subject: [PATCH] When building a kernel or the loader, let the hostname be overridden --- sys/boot/common/newvers.sh | 2 +- sys/conf/newvers.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/boot/common/newvers.sh b/sys/boot/common/newvers.sh index 0cab1f90b3a6..fd7b0b1685c4 100755 --- a/sys/boot/common/newvers.sh +++ b/sys/boot/common/newvers.sh @@ -33,7 +33,7 @@ # @(#)newvers.sh 8.1 (Berkeley) 4/20/94 LC_ALL=C; export LC_ALL -u=${USER-root} h=`hostname` t=`date` +u=${USER-root} h=${HOSTNAME-`hostname`} t=`date` #r=`head -n 6 $1 | tail -n 1 | awk -F: ' { print $1 } '` r=`awk -F: ' /^[0-9]\.[0-9]+:/ { print $1; exit }' $1` diff --git a/sys/conf/newvers.sh b/sys/conf/newvers.sh index b339d795aeb3..e2dafba22aa0 100644 --- a/sys/conf/newvers.sh +++ b/sys/conf/newvers.sh @@ -81,7 +81,7 @@ then fi touch version -v=`cat version` u=${USER-root} d=`pwd` h=`hostname` t=`date` +v=`cat version` u=${USER-root} d=`pwd` h=${HOSTNAME-`hostname`} t=`date` i=`make -V KERN_IDENT` cat << EOF > vers.c $COPYRIGHT