From: Hugo Villeneuve Date: Thu, 29 Aug 2013 23:44:51 +0000 (-0400) Subject: Remove unnecessary wpa_supplicant option X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=0ae5d980170c956175b8146243e0fe733ea5d2ff;p=hvlinux.git 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. --- 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" }