Package: ifupdown-extra
Version: 0.3
Severity: minor
Tags: patch
See attached patch. Did you consider to rewrite network-test in
(Perl|Python|Ruby)?
-- System Information:
Debian Release: 4.0
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18.2
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages ifupdown-extra depends on:
ii arping 2.05-2 sends IP and/or ARP pings (to the
ii bind9-host 1:9.3.2-P1.0-1 Version of 'host' bundled with BIN
ii iproute 20061002-2 Professional tools to control the
ii iputils-ping 3:20020927-3.1 Tools to test the reachability of
ii net-tools 1.60-17 The NET-3 networking toolkit
ii netcat 1.10-32 TCP/IP swiss army knife
Versions of packages ifupdown-extra recommends:
ii ethtool 5-1 display or change ethernet card se
-- no debconf information
--- /usr/bin/network-test 2006-11-25 04:16:38.000000000 -0800
+++ /tmp/network-test 2006-11-26 04:38:34.000000000 -0800
@@ -238,7 +238,7 @@
else
# TODO: WARN if more than 2 IP addresses?
echo $inetaddr | while read ipaddr; do
- echo "INFO: The $ifname interface has IP address
$ipaddr assigned"
+ echo "INFO: The $ifname interface has IP address
$ipaddr assigned"
done
fi
@@ -259,7 +259,7 @@
elif [ "$rxpkts" -eq 0 ] ; then
echo "WARN: The $ifname interface has not received any packets."
else
- echo "INFO: The $ifname interface has tx and rx packets."
+ echo "INFO: The $ifname interface has tx and rx packets."
fi
# TODO: It should be best if there was a comparison with tx/rx packets.
# a few errors are not uncommon if the card has been running for a long
@@ -284,7 +284,7 @@
echo "ERR: The $ifname interface that is
associated with your default route is down!"
status=1
elif [ "$ifname" = "lo" ] ; then
- echo "ERR: Your lo inteface is down, this might
cause issues with local applications (but not necessarily with network
connectivity)"
+ echo "ERR: Your lo interface is down, this
might cause issues with local applications (but not necessarily with network
connectivity)"
else
echo "WARN: The $ifname interface is down"
fi