Public bug reported:
Binary package hint: wpasupplicant
The error is about unknown mode:
$ sudo ./wpasupplicant
wpa_supplicant: unknown mode: ""
$ sudo sh -x /etc/network/if-up.d/wpasupplicant
+ [ -n ]
+ [ = lo ]
+ [ -n ]
+ WPA_IFACE=
+ [ -f /etc/wpa_supplicant/functions.sh ]
+ . /etc/wpa_supplicant/functions.sh
+ WPA_SUP_BIN=/sbin/wpa_supplicant
+ WPA_SUP_PNAME=wpa_supplicant
+ WPA_SUP_PIDFILE=/var/run/wpa_supplicant..pid
+ WPA_CLI_BIN=/sbin/wpa_cli
+ WPA_CLI_PNAME=wpa_cli
+ WPA_CLI_PIDFILE=/var/run/wpa_action..pid
+ WPA_CLI_LOGFILE=/var/log/wpa_action..log
+ WPA_CLI_TIMESTAMP=/var/run/wpa_action..timestamp
+ WPA_CLI_IFUPDOWN=/var/run/wpa_action..ifupdown
+ [ -d /lib/init/rw/sendsigs.omit.d/ ]
+
WPA_SUP_OMIT_PIDFILE=/lib/init/rw/sendsigs.omit.d/wpasupplicant.wpa_supplicant..pid
+
WPA_CLI_OMIT_PIDFILE=/lib/init/rw/sendsigs.omit.d/wpasupplicant.wpa_action..pid
+ [ -z ]
+ WPA_CTRL_DIR=/var/run/wpa_supplicant
+ [ -n ]
+ [ = 1 ]
+ TO_NULL=/dev/null
+ DAEMON_VERBOSITY=--quiet
+ [ ! -x /sbin/wpa_supplicant ]
+ [ ! -x /sbin/wpa_cli ]
+ wpa_msg stderr unknown mode: ""
+ [ -n ]
+ shift
+ echo wpa_supplicant: unknown mode: ""
wpa_supplicant: unknown mode: ""
+ exit 1
It seems the wpasupplicant script must be called with an environment
variable of MODE, stating either start or stop. For the script there
also seems to the PHASE variable to be of importance. These don't seem
to be set when calling from if-up or if-down.
** Affects: wpasupplicant (Ubuntu)
Importance: Undecided
Status: New
--
/etc/network/if-up.d/wpasupplicant throws error in invocation
https://bugs.launchpad.net/bugs/659808
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs