Your message dated Sat, 04 Apr 2009 23:02:11 +0100
with message-id <[email protected]>
and subject line Re: Bug#522407: ethtool: useless in scripts: always returns 0
has caused the Debian Bug report #522407,
regarding ethtool: useless in scripts: always returns 0
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
522407: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=522407
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: ethtool
Version: 6+20090307-1
Severity: normal
When there is no link ethtool should return non-zero, as it used to.
That way testing for a link is as easy as "if ethtool eth0; then ...; fi"
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (499,
'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.29-1-timgad64 (SMP w/2 CPU cores)
Locale: LANG=en_CA, lc_ctype=fr...@euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash
Versions of packages ethtool depends on:
ii libc6 2.9-6 GNU C Library: Shared libraries
ethtool recommends no packages.
ethtool suggests no packages.
-- no debconf information
--
http://www.critikart.net
--- End Message ---
--- Begin Message ---
On Fri, 2009-04-03 at 15:27 +0200, Louis-David Mitterrand wrote:
> Package: ethtool
> Version: 6+20090307-1
> Severity: normal
>
> When there is no link ethtool should return non-zero,
I disagree; it's not a failure.
> as it used to.
That must have been a long time ago. The earliest version I could find
was 1.7 from 2002, and it doesn't have this behaviour. So this cannot
be the behaviour expected by most users.
> That way testing for a link is as easy as "if ethtool eth0; then ...; fi"
You should instead use:
! { ip link show $iface | grep -q NO-CARRIER; }
which doesn't require root and works with every kind of network device.
Ben.
signature.asc
Description: This is a digitally signed message part
--- End Message ---