Ethernet card set up conflicts
I have a small problem with my laptop ethernet set up: I have two possible configurations, one with a wireless usb adapter for use at home and one with pcmcia card for work. These are configured in two files if-th0, and if-eth1. I also have aliases set up in modules.conf to autoload.
Now the problem. If I set the wireless card as eth0 and the lan card set as eth1. When I load at work the system give errors along the lines of incorrect MAC address and cannot change the name of the eth1 to eth0 etc. I then have to configure the card manually. If I swap the setting round I then get the same problem at home, only worse because it then does not load the module correctly. I know (some of?) the programs that are used ifup and if-wireless, but do not have enough knowledge to re programme these.
What I want to know is there a way of checking which card is loaded and then only configuring that device. I know that ifup use the -f to check for valid files but is there a check on hardware and devices, that couls be used.
As I said this is more of a nuisance than a major problem as I could always configure manually every time.
Did any of that make sense?