mirror of
https://github.com/opnsense/src.git
synced 2026-02-19 02:30:08 -05:00
Do without head and tail: they're pretty unnecessary here anyway.
This commit is contained in:
parent
36e85d353d
commit
7870a52598
1 changed files with 2 additions and 1 deletions
|
|
@ -36,7 +36,8 @@
|
|||
# @(#)newvers.sh 8.1 (Berkeley) 4/20/94
|
||||
|
||||
u=${USER-root} h=`hostname` t=`date`
|
||||
r=`head -n 6 $1 | tail -n 1 | awk -F: ' { print $1 } '`
|
||||
#r=`head -n 6 $1 | tail -n 1 | awk -F: ' { print $1 } '`
|
||||
r=`awk -F: ' /^[0-9]\.[0-9]+:/ { print $1; exit }' $1`
|
||||
|
||||
echo "char bootprog_name[] = \"FreeBSD/i386 ${2}\";" > vers.c
|
||||
echo "char bootprog_rev[] = \"${r}\";" >> vers.c
|
||||
|
|
|
|||
Loading…
Reference in a new issue