Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 112333 - macchanger script does not assign the right mac address
Summary: macchanger script does not assign the right mac address
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-12 12:44 UTC by Ben Twijnstra
Modified: 2005-11-23 08:13 UTC (History)
0 users

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


Attachments
Working version of /lib/rcscripts/net.modules.d/macchanger (macchanger.works,3.07 KB, text/plain)
2005-11-12 12:45 UTC, Ben Twijnstra
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Twijnstra 2005-11-12 12:44:45 UTC
With the version of the /lib/rcscripts/net.modules.d/macchanger script in 
baselayout-1.12.0_pre10, if the macchanger script is started by having a line 
in /etc/conf.d/net saying, for example, 
 
mac_eth0="00:60:b0:fc:d1:85" 
 
macchanger fails because the interface is already up (maybe because it's 
loaded as a module) and assigns a mac address that is 1 higher (i.e. 
00:60:b0:fc:d1:86). 

Reproducible: Always
Steps to Reproduce:
1. load your ethernet card driver as a module (8139too in my case) 
2. in /etc/conf.d/net, assign some mac address to the card (see above) 
3. reboot 
  
Actual Results:  
A different mac address than specified is assigned  


A version of macchanger that works properly for me is attached.
Comment 1 Ben Twijnstra 2005-11-12 12:45:52 UTC
Created attachment 72772 [details]
Working version of /lib/rcscripts/net.modules.d/macchanger
Comment 2 SpanKY gentoo-dev 2005-11-12 17:04:59 UTC
Comment on attachment 72772 [details]
Working version of /lib/rcscripts/net.modules.d/macchanger

post a patch, not the whole file
Comment 3 Roy Marples (RETIRED) gentoo-dev 2005-11-23 08:13:49 UTC
Fixed in baselayout-1.12.0_pre11