On Thursday 08 February 2001 14:31, Jochen Striepe wrote:
> > Hi,
>
> On 08 Feb 2001, Steven Cole <elenstev@mesatop.com> wrote:
> > I have modified the scripts/ver_linux script to provide the following:
>
> [...]
>
> > hostname -V 2>&1 | awk 'NR==1{print "Net-tools ", $NF}'
>
> *Please* consider modifying this. There might be a problem:
>
>
> tolot:/root # hostname -V
> tolot:/root # hostname
> -V
> tolot:/root # hostname --version
> hostname (GNU sh-utils) 2.0.11
> Written by Jim Meyering.
Hmm, I guess the newer verion of hostname broke the old behaviour:
[root@localhost scripts]# hostname -V
net-tools 1.57
hostname 1.99 (2000-02-13)
But, there is an easy solution:
[root@localhost scripts]# ifconfig --version
net-tools 1.57
ifconfig 1.40 (2000-05-21)
I replaced the old code for Net-tools with this:
ifconfig --version 2>&1 | grep tools | awk \
'NR==1{print "Net-tools ", $NF}'
That should work. I hope. Try it please.
A new patch, still against 2.4.1-ac6 is attached.
It should work with 2.4.1-ac5,6,7.
Steven
This archive was generated by hypermail 2b29 : Thu Feb 15 2001 - 21:00:13 EST