Update: 2005-01-01. I don't use anymore waproamd. I use instead wpa_supplicant

Problem: I installed hotplug , ifplugd and waproamd. I want to find a configuration for my ethernet and wireless interfaces that permits to obtain an address via DHCP only when the interfaces are connected, and not to wait for timeout when the interfaces are unplugged.

Answer:

So, at the start-up the networking script doesn't try to configure any interface, since no interfaces are marked as auto. The same apply for ifplugd, since again I set its policy to run at the boot for the interfaces marked as auto. In this way, every interface is managed by hotplug, and if no interfaces are plugged nobody tries to obtain an address via DHCP, slowing the boot process.
If I plug the eth0 interface, then hotplug starts ifplugd for that interface with the scripts in /etc/hotplug.d/net; then ifplugd configure the interface with the settings in /etc/network/interfaces (in my case, iface eth0 inet dhcp).
The same apply for wlan0 and waproamd, the only difference being that for me plugging and unplugging the interface is given by the loading and unloading of the interface kernel module.

Write me marco+site@equars.com if you have any hint/correction.

Last edit: 2004-12-06