Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 72506 - wireless-tools' ifrename wildcard matching broken
Summary: wireless-tools' ifrename wildcard matching broken
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-25 14:19 UTC by Peter Willis
Modified: 2004-11-29 10:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
fixes the bug (ifrename.diff,3.11 KB, patch)
2004-11-25 14:20 UTC, Peter Willis
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Willis 2004-11-25 14:19:53 UTC
ifrename(8) renames interfaces based on matching criteria documented in iftab(5). currently in wireless-tools-28-pre3 and earlier versions (up to -27?) the use of a wildcard in the name of the interface to be changed to causes the interface to be incorrectly renamed. for example, using the iftab config "eth* iwproto *" renames an interface to "eth%d" instead of "eth1".

a following patch fixes ifrename to work as expected.

Reproducible: Always
Steps to Reproduce:
1. install wireless card
2. configure iftab with "example* iwproto *"
3. run ifrename

Actual Results:  
any wireless interfaces (note the plural!!!) are renamed to "example%d"

Expected Results:  
rename it to "example0"
Comment 1 Peter Willis 2004-11-25 14:20:50 UTC
Created attachment 44753 [details, diff]
fixes the bug
Comment 2 Henrik Brix Andersen 2004-11-27 02:03:04 UTC
I've tested ifrename with "example* iwproto *" in /etc/iftab here - works as I would have expected. My wireless net interfaces are renamed to example0, example1, ...

I am using net-wireless/wireless-tools-28_pre3.

Please attach the output of 'emerge --info' to this bug report.
Comment 3 Peter Willis 2004-11-27 12:26:01 UTC
hmm... looks like i had a configuration problem which was causing the bug. i can't reproduce now, nor can i find anyone who has the bug, so i suggest we resolve this bug as fixed.
Comment 4 Peter Willis 2004-11-29 10:47:10 UTC
well i figured out the problem: using wildcards with interfaces only work in 2.6 kernels apparently. there is a patch for 2.4 kernels, but i am currently working on a fix for ifrename so the kernel doesn't require patching.