Remove unnecessary wpa_supplicant option
authorHugo Villeneuve <hugo@hugovil.com>
Thu, 29 Aug 2013 23:44:51 +0000 (19:44 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Thu, 31 Jul 2014 02:15:23 +0000 (22:15 -0400)
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
stage2/pkg/wpa_supplicant

index 6af859a..6c39a7a 100755 (executable)
@@ -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
index 8578df9..555034a 100644 (file)
@@ -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"
 }