Package: wireless-tools
Version: 27+28pre10-1

/etc/network/if-pre-up.d/wireless-tools doesn't check if $IFACE == lo
At startup, ifup is called as "ifup -a" from /etc/init.d/networks and 
therefore, if the systems is set with "auto lo", it will subsequently call 
wireless-tools script for the loopback interface too.
Obviously, the loopback interface doe snot have essid, rate, mode, etc 
properties so it will fail and annoy with messages on every property that the 
script tries to set to it.

To avoid this, just add at the beginning of the file (right after #! /bin/sh):

if [ x"$IFACE" = xlo ]; then
  exit 0
fi

This way the script will ignore when called to set loopback interface 
properties.

Almost all systems have a loopback interface set to auto ("auto lo" in 
/etc/network/interfaces), so this bug is reproducible almost everywhere.

NOTE: This happens at startup only, not later, since restarting the networks 
script will call ifup with --exclude=lo and therefore will not call the 
wireles-tools script for the lo interface. To check the error messages, see 
/var/log/boot. They are like this: 

Wed Nov 16 12:21:23 2005: Configuring network interfaces...Error for wireless 
request "Set ESSID" (8B1A) :
Wed Nov 16 12:21:24 2005:     SET failed on device lo ; Operation not supported.

Greets.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to