Imported Debian version 0.25
Javier Fernandez-Sanguino
11 years ago
|
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 |
|
0 | 15 |
debian-goodies (0.24) unstable; urgency=low
|
1 | 16 |
|
2 | 17 |
* Taking up this package as new maintainer, after talking with Matt
|
6 | 6 |
|
7 | 7 |
Package: debian-goodies
|
8 | 8 |
Architecture: all
|
9 | |
Depends: grep-dctrl, curl, python (>= 2.3), lsof
|
|
9 |
Depends: dctrl-tools | grep-dctrl, curl, python (>= 2.3), lsof
|
10 | 10 |
Suggests: popularity-contest
|
11 | 11 |
Conflicts: debget
|
12 | 12 |
Replaces: debget
|
0 | |
#!/bin/sh
|
|
0 |
#!/bin/bash
|
1 | 1 |
# Network testing script v 1.3
|
2 | 2 |
# (c) 2005 Javier Fernandez-Sanguino
|
3 | 3 |
#
|
|
192 | 192 |
ip link show | egrep '^[[:digit:]]' |
|
193 | 193 |
while read ifnumber ifname status extra; do
|
194 | 194 |
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
|
196 | 197 |
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!"
|
198 | 199 |
status=1
|
199 | 200 |
elif [ "$ifname" = "lo" ] ; then
|
200 | 201 |
echo "ERR: Your lo inteface is down, this might cause issues with local applications (but not necessarily with network connectivity)"
|
|
278 | 279 |
nsok=0
|
279 | 280 |
tempfile=`mktemp tmptestnet.XXXXXX` || { echo "ERR: Cannot create temporary file! Aborting! " >&2 ; exit 1; }
|
280 | 281 |
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 |
|
282 | 285 |
awk '/nameserver/ { for (i=2;i<=NF;i++) { print $i ; } }' >$tempfile
|
283 | 286 |
for nameserver in `cat $tempfile`; do
|
284 | 287 |
nsfound=$(( $nsfound + 1 ))
|
16 | 16 |
elts = map(strip, myline.split(':'))
|
17 | 17 |
if len(elts) == 2:
|
18 | 18 |
how, pkg = elts
|
19 | |
if how == 'Depends':
|
|
19 |
if how in ('Depends', 'PreDepends'):
|
20 | 20 |
deps.append(pkg)
|
21 | 21 |
myline = outstr.readline()
|
22 | 22 |
return deps
|