diff options
author | ps <ps@FreeBSD.org> | 2004-07-01 06:40:12 +0000 |
---|---|---|
committer | ps <ps@FreeBSD.org> | 2004-07-01 06:40:12 +0000 |
commit | 268ac8d0b8eff12d0d1ee8ca0a3b88b80ee6221e (patch) | |
tree | 696d802a315917657fe2d424a1198374e6b6f669 /sys/boot/common/newvers.sh | |
parent | a08e7cf6b7429dcd09897efce0d0572806bbb4aa (diff) | |
download | FreeBSD-src-268ac8d0b8eff12d0d1ee8ca0a3b88b80ee6221e.zip FreeBSD-src-268ac8d0b8eff12d0d1ee8ca0a3b88b80ee6221e.tar.gz |
When building a kernel or the loader, let the hostname be overridden
Diffstat (limited to 'sys/boot/common/newvers.sh')
-rwxr-xr-x | sys/boot/common/newvers.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/common/newvers.sh b/sys/boot/common/newvers.sh index 0cab1f9..fd7b0b1 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` |