Package: guessnet
Version: 0.41-1
Severity: normal
Tags: patch
When there are lots of networks, the "iwlist scan" based test script hangs. I
think the problem is caused by bash being unable to handle scanning
through very large variables. Here's a replacement for the last part of that
script which solves that problem by using grep instead, though that may mean
you
need to add grep to your dependencies list.
(sorry, I can't do a proper patch as I wrote over the original script when
fixing it - oops!)
shopt -s extglob # We need this to allow the ?( ) syntax in patterns
[ "$SCAN" = "${SCAN/Interface doesn?t support scanning/}" ] || exit 1
[ "$SCAN" = "${SCAN/Operation not supported/}" ] || exit 1
if [ "$MAC_ADDRESS" ] ; then
if [[ -z `echo "$SCAN" | grep "Address:.*$MAC_ADDRESS"` ]]; then
exit 1
fi
fi
if [ "$ESSID" ] ; then
if [[ -z `echo "$SCAN" | grep "ESSID:.*$ESSID"` ]]; then
exit 1
fi
fi
exit 0
-- System Information:
Debian Release: 4.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17.061206.1
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)
Versions of packages guessnet depends on:
ii libc6 2.3.6.ds1-8 GNU C Library: Shared libraries
ii libgcc1 1:4.1.1-19 GCC support library
ii libnet1 1.1.2.1-2 library for the construction and h
ii libpcap0.7 0.7.2-7 System interface for user-level pa
ii libstdc++6 4.1.1-19 The GNU Standard C++ Library v3
guessnet recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]