[pkg-wpa-devel] Hotplug support for wpasupplicant

Reinhard Tartler siretart at tauware.de
Tue Mar 7 17:07:52 UTC 2006


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.

About driver autodetection, well, we could do some heuristics to detect
the hardware looking at the pci ids, but that won't be too reliable.
Perhaps this can be done in wpasupplicant itself?

I'm not sure what to do with this bug. Perhaps it should be cloned and
one clone reassigned to ifupdown, so that it installs a
85-ifupdown.rules, just like ubuntu does it. The other clone would be
about driver detection.

What do others think?

Gruesse,
	Reinhard

-------------- next part --------------
# This file causes network devices to be brought up or down as a result
# of hardware being added or removed, including that which isn't ordinarily
# removable.
# See udev(8) for syntax.

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"


More information about the Pkg-wpa-devel mailing list