Codebase list debian-goodies / b78d092
Imported Debian version 0.25 Javier Fernandez-Sanguino 12 years ago
4 changed file(s) with 24 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
0 debian-goodies (0.25) unstable; urgency=low
1
2 * Depend on dctrl-tools since grep-dctrl is a transitional package, keep
3 grep-dctrl to make it possible to backport this package (Closes: #385478)
4 * which-pkg-broke now looks in Pre-Depends thanks to the patch submitted by
5 Josh Triplett (Closes: #394950)
6 * Network-test changes:
7 - now uses bash only (Closes: #396324)
8 - correctly detects an interface as UP if it has been forced to a
9 given speed (Closes: #396336)
10 - do not test nameservers that have been commented out from resolv.conf
11 - fix a typo in a message
12
13 -- Javier Fernandez-Sanguino Pen~a <jfs@computer.org> Wed, 1 Nov 2006 10:39:09 +0100
14
015 debian-goodies (0.24) unstable; urgency=low
116
217 * Taking up this package as new maintainer, after talking with Matt
66
77 Package: debian-goodies
88 Architecture: all
9 Depends: grep-dctrl, curl, python (>= 2.3), lsof
9 Depends: dctrl-tools | grep-dctrl, curl, python (>= 2.3), lsof
1010 Suggests: popularity-contest
1111 Conflicts: debget
1212 Replaces: debget
0 #!/bin/sh
0 #!/bin/bash
11 # Network testing script v 1.3
22 # (c) 2005 Javier Fernandez-Sanguino
33 #
192192 ip link show | egrep '^[[:digit:]]' |
193193 while read ifnumber ifname status extra; do
194194 ifname=`echo $ifname |sed -e 's/:$//'`
195 if [ -z "`echo $status | grep UP\>`" ] ; then
195 if [ -z "`echo $status | grep UP\>`" ] && \
196 [ -z "`echo $status | grep UP,`" ] ; then
196197 if [ "$ifname" = "$defaultif" ] ; then
197 echo "ERR: The $ifname interface that is associated with your defualt route is down!"
198 echo "ERR: The $ifname interface that is associated with your default route is down!"
198199 status=1
199200 elif [ "$ifname" = "lo" ] ; then
200201 echo "ERR: Your lo inteface is down, this might cause issues with local applications (but not necessarily with network connectivity)"
278279 nsok=0
279280 tempfile=`mktemp tmptestnet.XXXXXX` || { echo "ERR: Cannot create temporary file! Aborting! " >&2 ; exit 1; }
280281 trap " [ -f \"$tempfile\" ] && /bin/rm -f -- \"$tempfile\"" 0 1 2 3 13 15
281 cat /etc/resolv.conf |grep nameserver |
282 # TODO should warn about resolv.conf entries with more than one
283 # ip address in the nameserver line
284 cat /etc/resolv.conf |grep -v ^# | grep nameserver |
282285 awk '/nameserver/ { for (i=2;i<=NF;i++) { print $i ; } }' >$tempfile
283286 for nameserver in `cat $tempfile`; do
284287 nsfound=$(( $nsfound + 1 ))
1616 elts = map(strip, myline.split(':'))
1717 if len(elts) == 2:
1818 how, pkg = elts
19 if how == 'Depends':
19 if how in ('Depends', 'PreDepends'):
2020 deps.append(pkg)
2121 myline = outstr.readline()
2222 return deps