Create a file called /etc/hotplug/pci/3c59x (substitute the name of your card's module). In it, put commands similar to this. ^G means a control-G, the console beep character: this simulates the two beeps you hear upon inserting...
See more »
Create a file called /etc/hotplug/pci/3c59x (substitute the name of your card's module). In it, put commands similar to this. ^G means a control-G, the console beep character: this simulates the two beeps you hear upon inserting pcmcia cards, though unfortunately you don't get the high-or-low beep for success or failure. (Substitute eth1 if needed.) Make it executable: chmod 755 /etc/hotplug/pci/3c59x Now the hotplug system should see your card and configure the network appropriately. Hotplug debugging tips: The files in /etc/hotplug are all scripts, so you can add "echo" statements to them to see where it's going and what it's doing. The catch is that you may not see these echoes, especially if you're in X. So use lines like this: echo "Entering pci.agent" >>/etc/hotplug.dbg scattered throughout the hotplug scripts you want to debug. The >> makes it append to the file, so you'll be able to read that file as a log of what it did. Try adding lines like this to pci.agent, net.agent, and also to files in /etc/pcmcia since cardmgr may be stealing the event before hotplug gets it. After much goggling and fiddling, I came up with a setup that works nicely. The gist is this: There are two different systems called when a PCMCIA card is inserted: cardmgr (PCMCIA-only) and hotplug (a general system which also covers USB and firewire). Hotplug is a nice general system; but for networking, cardmgr has the advantage that it has a built-in scheme mechanism which can define multiple zones with different behaviors for each zone. Redhat's native network setup, located mostly in /etc/sysconfig/networking and /etc/sysconfig/network-scripts, is called from hotplug; so Redhat disables the networking part of cardmgr, though the cardmgr system is still there for use with other types of PCMCIA cards. If you want schemes to work, you have to re-enable the cardmgr scripts and disable the hotplug ones. These steps will guide you through this: * Disable hotplug control of networking. Edit /etc/hotplug/net.agent. Search down to where it says "RedHat and similar" and find the line that says if [ -x /sbin/ifup ]; then and change it to say: if [ -x /sbin/ifupXXX ]; then Now it will skip that clause, because there's no program called /sbin/ifupXXX. * Enable cardmgr control of networking. You can do this by installing the full pcmcia-cs package, but you already have most of it: really all you need is two files: /etc/pcmcia/network and /etc/pcmcia/network.opts. If you have a non-Redhat system handy, you can just copy those two files from the other system; or you can copy those files from a pcmcia-cs distribution. Either way, plunk them down in /etc/pcmcia (you might want to copy the existing /etc/pcmcia/network script somewhere safe first). * Edit /etc/pcmcia/network.opts to customize it for your setup. This is the file where your schemes should be defined. The file you copied should have samples of the format. A DHCP scheme will probably look something like this: What if hotplug doesn't configure the card?
See less »
Kaboodle will send you a newsletter and updates from your friends. You can unsubscribe at any time. Kaboodle does not sell or share your email address or personal information with anyone.
Kaboodle requires all users to provide their real date of birth as both a safety precaution and as a means
of preserving the integrity of the site. You will be able to hide this information from your profile if you wish.
Added by