From 0ae5d980170c956175b8146243e0fe733ea5d2ff Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Thu, 29 Aug 2013 19:44:51 -0400 Subject: [PATCH] Remove unnecessary wpa_supplicant option Add trace to logs to see which wifi network is being configured. Warning: this is not foolproof and need to be improved. --- stage2/bootscripts/ifup | 5 +++++ stage2/pkg/wpa_supplicant | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/stage2/bootscripts/ifup b/stage2/bootscripts/ifup index 6af859a..6c39a7a 100755 --- a/stage2/bootscripts/ifup +++ b/stage2/bootscripts/ifup @@ -115,6 +115,11 @@ proto_wireless() exit ${EXIT_CODE_WARNING} fi + # Warning: there is no guarantee that wpa_supplicant will try that network, + # if two or more networks are listed in wpa_supplicant.conf and are + # all simultaneously reachable (if they appear in iwlist). + echo "Trying to connect to wifi network \"${ESSID}\"" + if [ -f /var/run/wpa_supplicant/${DEVICE} ]; then echo "Stopping previous wpa_supplicant" killall wpa_supplicant diff --git a/stage2/pkg/wpa_supplicant b/stage2/pkg/wpa_supplicant index 8578df9..555034a 100644 --- a/stage2/pkg/wpa_supplicant +++ b/stage2/pkg/wpa_supplicant @@ -38,7 +38,6 @@ ctrl_interface=/var/run/wpa_supplicant network={ ssid="insert your SSID here" - scan_ssid=1 key_mgmt=WPA-PSK psk="insert your password here" } -- 2.20.1