When building a kernel or the loader, let the hostname be overridden
This commit is contained in:
parent
0d7f466944
commit
b7c29ad503
@ -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`
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user