Package: ifupdown
Version: 0.6.5

I use get-mac-address.sh for mapping my ethernet adapters as described in the debian network configuration documentation.

This works fine with standard ethernet adapters but not with my wireless ethernet. The reason is the output format of the mac address in ifconfig:

Standard ethernet: HWaddr 00:22:39:B2:0F:21
Wireless ethernet: HWaddr 00-10-DC-00-00-46-2B-44-00-00-00-00-00-00-00-00

In order to make it work (i.e. recognise both formats), I changed the regular expression for the sed line adressing inside get-mac-address-sh:

Before:
mac=$(/sbin/ifconfig "$iface" | sed -n -e '/^.*HWaddr \([:[:xdigit:]]*\).*/{s//\1/;y/ABCDEF/abcdef/;p;q;}')

After (I added the \- ):
mac=$(/sbin/ifconfig "$iface" | sed -n -e '/^.*HWaddr \([:[:xdigit:]\-]*\).*/{s//\1/;y/ABCDEF/abcdef/;p;q;}')

I hope, this will be useful for others as well.
Thanks for the nice package!

Guy Voncken


Using Kernel 2.6.9 #2 SMP Tue Oct 19 23:51:10 CEST 2004 i686 GNU/Linux and Clib 2.3.5-8


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

Reply via email to