summaryrefslogtreecommitdiffstats
path: root/sys/conf/newvers.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sys/conf/newvers.sh')
-rw-r--r--sys/conf/newvers.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/conf/newvers.sh b/sys/conf/newvers.sh
index ae74487..e0a6600 100644
--- a/sys/conf/newvers.sh
+++ b/sys/conf/newvers.sh
@@ -81,8 +81,8 @@ then
fi
touch version
-u=`/usr/bin/logname`
-v=`cat version` u=${u:-root} d=`pwd` h=${HOSTNAME-`hostname`} t=`date`
+USER=${USER-`logname`}
+v=`cat version` u=${USER-root} d=`pwd` h=${HOSTNAME-`hostname`} t=`date`
i=`${MAKE:-make} -V KERN_IDENT`
cat << EOF > vers.c
$COPYRIGHT
OpenPOWER on IntegriCloud