Bug#295445: [pkg-wpa-devel] Hotplug support for wpasupplicant

Reinhard Tartler siretart at tauware.de
Mon Mar 27 09:26:21 UTC 2006


On Mon, Mar 27, 2006 at 05:57:23PM +1000, Kel Modderman wrote:
> Reinhard Tartler wrote:
> >This is http://bugs.debian.org/295445
> >
> >This bug is solved in ubuntu at an different place: in ifupdown.
> >Ifupdown in ubuntu installs a /etc/udev/rules.d/85-ifupdown.rules, which
> >ifup's the interface which was hotplugged. I like this idea, and think
> >this should be handled in debian in a similar way. This solution depends
> >on udev however. I have attached it for reference.
> >
> >  
> 
> How is this different to using the allow-hotplug ifupdown class in your 
> interfaces stanza?
 
with udev deprecating/conflicting hotplug, I think this issue is solved
anyway. ubuntu ships a /etc/udev/rules.d/85-ifupdown.rules with this
content:

SUBSYSTEM!="net", GOTO="net_end"
# Bring devices up and down only if they're marked auto.
# Use start-stop-daemon so we don't wait on dhcp
ACTION=="add",          RUN+="/sbin/start-stop-daemon --start --background --pidfile /var/run/network/bogus --startas /sbin/ifup -- --allow auto $env{INTERFACE}"
ACTION=="remove",       RUN+="/sbin/start-stop-daemon --start --background --pidfile /var/run/network/bogus --startas /sbin/ifdown -- --allow auto $env{INTERFACE}"
LABEL="net_end"


I don't know what objections Md has to this solution, but this
faciliates hotplugging interfaces massively.

FWIW, I think this bug should be cloned, one for the hotpluging part,
which can be closed, and one for the driver backend autodetection, which
is a more tricky one. But considering that the available wlan drivers
seem to consolidate on wireless extensions, the backend wext should work
on every wlan driver some time, so that this bug will solve itself
somewhen.

Nevertheless, if anyone has a clever Idea, feel free to propose it on
our mailing list. We just focus on other, more important problems right
now.

Gruesse,
	Reinhard




More information about the Pkg-wpa-devel mailing list