[pkg-wpa-devel] Bug#383907: Is there an easy way to check if an interface is managed by wpa_action?

Reinhard Tartler siretart at tauware.de
Sun Aug 20 14:02:57 UTC 2006


Package: wpasupplicant
Version: 0.5.4-2
Severity: wishlist

Hi Kel,

while tuning my suspend and resume scripts, I noticed that acpi-support
contains code like this in /etc/acpi-support/suspend.d/55-down-interfaces.sh

# Find the currently running network interfaces...
INTERFACES=`/sbin/ifconfig | awk '/^[^ ]+/ {print $1}'`

# And shut them down
for x in $INTERFACES; do
    ifdown $x down;
    ifconfig $x down;
done


This of course fails if the interface is controlled by wpa-roam aka
/sbin/wpa_action. I hardcased the check here for my interface, but it
would be nice if acpi-support could be improved and call `wpa_action $x
stop` by itself. For this we need to provide a reliable check if the
interface is managed by wpa_action or not.

-- 
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4







More information about the Pkg-wpa-devel mailing list