Public bug reported:

Binary package hint: wireless-tools

The preup script is "broken":

eth0 being my wired network interface, snippet from
/etc/network/interfaces:

iface eth0 inet dhcp
hwaddress ether 00:0e:35:ca:c8:3e

Now, with the unpatched wireless preup, I get:
[EMAIL PROTECTED]:~# ifup --verbose eth0
Configuring interface eth0=eth0 (inet)
run-parts --verbose /etc/network/if-pre-up.d
run-parts: executing /etc/network/if-pre-up.d/wireless-tools
run-parts: executing /etc/network/if-pre-up.d/wpasupplicant
ifconfig eth0 hw ether 00:0e:35:ca:c8:3e
SIOCSIFHWADDR: Device or resource busy - you may need to down the interface
Failed to bring up eth0.

Adding the following to the bottom of the script fixes my problem:

if [ -x "$IFCONFIG" ]; then
  $IFCONFIG "$IFACE" down
fi

Only caveat, I'm not 100% sure if iwconfig settings survive an ifconfig
down, but they should if I remember right. (I seem to remember that the
fastest way to get a clean iwconfig state was reloading the ipw2100
module.)

Andreas

ProblemType: Bug
Architecture: i386
Date: Sat Apr 19 11:54:02 2008
Dependencies:
 libgcc1 1:4.2.3-2ubuntu7
 libiw29 29-1ubuntu2
 gcc-4.2-base 4.2.3-2ubuntu7
 libc6 2.7-10ubuntu3
DistroRelease: Ubuntu 8.04
Package: wireless-tools 29-1ubuntu2
PackageArchitecture: i386
ProcEnviron:
 SHELL=/bin/bash
 
PATH=/home/username/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=de_DE.UTF-8
SourcePackage: wireless-tools
Uname: Linux 2.6.24-16-generic i686

** Affects: wireless-tools (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug

-- 
/etc/network/if-pre-up.d/wireless-tools leaves the interface up, which breaks 
hwaddr setting
https://bugs.launchpad.net/bugs/219520
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to