[pkg-wpa-devel] Bug#622589: wpasupplicant doesn't work from network/interfaces

sergio mailbox at sergio.spb.ru
Wed Apr 13 07:56:35 UTC 2011


Package: wpasupplicant
Version: 0.7.3-2
Severity: normal


After upgrading to 0.7.3-2 from 0.6.10-2.1 wpasupplicant stop working from
network/interfaces, because functions.sh don't wait until wpasupplicant starts.

% sudo ifup --verbose eth4
....
Starting /sbin/wpa_supplicant...
wpa_supplicant: creating sendsigs omission pidfile: /lib/init/rw/sendsigs.omit.d/wpasupplicant.wpa_supplicant.eth4.pid
cat: /var/run/wpa_supplicant.eth4.pid: No such file or directory
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
....

dirty hack:
--- /etc/wpa_supplicant/functions.sh    2011-04-13 11:33:09.000000000 +0400
+++ /home/sergio/functions.sh   2011-04-13 11:30:57.000000000 +0400
@@ -281,6 +281,7 @@
 
        if [ -n "$WPA_SUP_OMIT_PIDFILE" ]; then
                wpa_msg verbose "creating sendsigs omission pidfile: $WPA_SUP_OMIT_PIDFILE"
+               sleep 1s
                cat "$WPA_SUP_PIDFILE" > "$WPA_SUP_OMIT_PIDFILE"
        fi
 }

% sudo ifup --verbose eth4
....
Starting /sbin/wpa_supplicant...
wpa_supplicant: creating sendsigs omission pidfile: /lib/init/rw/sendsigs.omit.d/wpasupplicant.wpa_supplicant.eth4.pid
wpa_supplicant: configuring network block -- 0
....

Works fine, but you should make better way.


network/interfaces configuration part:
iface eth4 inet dhcp
    wpa-ssid "ssid"
    wpa-psk  "psk"





More information about the Pkg-wpa-devel mailing list