| … | |
… | |
| 192 | # bool wpa_supplicant_pre_start(char *interface) |
192 | # bool wpa_supplicant_pre_start(char *interface) |
| 193 | # |
193 | # |
| 194 | # Start wpa_supplicant on an interface and wait for association |
194 | # Start wpa_supplicant on an interface and wait for association |
| 195 | # Returns 0 (true) when successful, non-zero otherwise |
195 | # Returns 0 (true) when successful, non-zero otherwise |
| 196 | wpa_supplicant_pre_start() { |
196 | wpa_supplicant_pre_start() { |
| 197 | local iface="$1" opts timeout action |
197 | local iface="$1" opts timeout action=false |
| 198 | local cfgfile="/etc/wpa_supplicant.conf" |
198 | local cfgfile="/etc/wpa_supplicant.conf" |
| 199 | local actfile="/sbin/wpa_cli.action" |
199 | local actfile="/sbin/wpa_cli.action" |
| 200 | |
200 | |
| 201 | # We don't configure wireless if we're being called from |
201 | # We don't configure wireless if we're being called from |
| 202 | # the background |
202 | # the background |