Skip to contentSkip to conversation

hotplug network agent / apmd bug...

BUG Ryan Mack 2 participants 3 messages Jul 25, 2001

lore
Share & tools
lore

Ryan Mack

author
#0 lore raw

The apm-script included in apmd-3.0final does the following on resume:

cardctl resume/insert
service networking start

Unfortunately, if one of your pcmcia cards is a PCI-merged networking card such as the 3c575_cb, hotplug does the following upon seeing the card resumed...

if networking is started, configure the new interface

Thus, because apmd reenables pcmcia before networking, a pcmcia network adapter won't be configured by hotplug.

One easy sollution, is that if the pcmcia network adapter is always in the system, you can enable ONBOOT for the interface, and thus the networking script will enable it for you. In my case (frequently switching between LAN and WAN cards), that isn't an option.

Anyhow, if one of the two projects could fix this it would be much appreciated. I'd submit a patch, but I'm not sure which project should be patched.

Thanks, Ryan Mack

_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw

Hmm, I've not hacked apmd stuff in ages, but as I recall it didn't ship with any configuration-specific support in its scripts -- stuff like "cardctl" and "service" commands. Are you positive those aren't distro bugs?

In general it'd make more sense to start networking first, I suspect..

- Dave

----- Original Message -----
From: "Ryan Mack" <[email protected]>
To: <[email protected]>; <[email protected]>
Sent: Tuesday, July 24, 2001 10:15 PM
Subject: [BUG] hotplug network agent / apmd bug...

Quoted 23 lines

The apm-script included in apmd-3.0final does the following on resume:

cardctl resume/insert
service networking start

Unfortunately, if one of your pcmcia cards is a PCI-merged networking card such as the 3c575_cb, hotplug does the following upon seeing the card resumed...

if networking is started, configure the new interface

Thus, because apmd reenables pcmcia before networking, a pcmcia network adapter won't be configured by hotplug.

One easy sollution, is that if the pcmcia network adapter is always in the system, you can enable ONBOOT for the interface, and thus the networking script will enable it for you. In my case (frequently switching between LAN and WAN cards), that isn't an option.

Anyhow, if one of the two projects could fix this it would be much appreciated. I'd submit a patch, but I'm not sure which project should be patched.

Quoted 7 lines

Thanks, Ryan Mack

_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

author
#2 lore raw
In reply to Ryan Mack

It's probably a distro bug then, in which case I've already submitted it to RH.

-Ryan

Quoted 8 lines · David Brownell

Hmm, I've not hacked apmd stuff in ages, but as I recall it didn't ship with any configuration-specific support in its scripts -- stuff like "cardctl" and "service" commands. Are you positive those aren't distro bugs?

In general it'd make more sense to start networking first, I suspect..

Quoted 40 lines

- Dave

----- Original Message -----
From: "Ryan Mack" <[email protected]>
To: <[email protected]>; <[email protected]>
Sent: Tuesday, July 24, 2001 10:15 PM
Subject: [BUG] hotplug network agent / apmd bug...

Quoted 30 lines

The apm-script included in apmd-3.0final does the following on resume:

cardctl resume/insert
service networking start

Unfortunately, if one of your pcmcia cards is a PCI-merged networking card such as the 3c575_cb, hotplug does the following upon seeing the card resumed...

if networking is started, configure the new interface

Thus, because apmd reenables pcmcia before networking, a pcmcia network adapter won't be configured by hotplug.

One easy sollution, is that if the pcmcia network adapter is always in the system, you can enable ONBOOT for the interface, and thus the networking script will enable it for you. In my case (frequently switching between LAN and WAN cards), that isn't an option.

Anyhow, if one of the two projects could fix this it would be much appreciated. I'd submit a patch, but I'm not sure which project should be patched.

Thanks, Ryan Mack

_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel