|
@@ -328,8 +328,14 @@ function wifi_none {
|
328
|
328
|
echo "iface ${WIFI_INTERFACE} inet manual" >> /etc/network/interfaces
|
329
|
329
|
echo " wpa-roam $WIFI_CONFIG" >> /etc/network/interfaces
|
330
|
330
|
|
331
|
|
- echo 'network={' > $WIFI_CONFIG
|
332
|
|
- echo " ssid=\"${ssid}\"" >> $WIFI_CONFIG
|
|
331
|
+ echo 'update_config=1' > $WIFI_CONFIG
|
|
332
|
+ echo 'eapol_version=1' >> $WIFI_CONFIG
|
|
333
|
+ echo '' >> $WIFI_CONFIG
|
|
334
|
+
|
|
335
|
+ echo 'network={' >> $WIFI_CONFIG
|
|
336
|
+ if [[ "${ssid}" != $'any' && "${ssid}" != $'all' && "${ssid}" != $'open' ]]; then
|
|
337
|
+ echo " ssid=\"${ssid}\"" >> $WIFI_CONFIG
|
|
338
|
+ fi
|
333
|
339
|
echo ' key_mgmt=NONE' >> $WIFI_CONFIG
|
334
|
340
|
echo '}' >> $WIFI_CONFIG
|
335
|
341
|
|
|
@@ -370,7 +376,6 @@ function networks_from_file {
|
370
|
376
|
fi
|
371
|
377
|
|
372
|
378
|
echo 'update_config=1' > $WIFI_CONFIG
|
373
|
|
- echo 'ap_scan=2' >> $WIFI_CONFIG
|
374
|
379
|
echo 'eapol_version=1' >> $WIFI_CONFIG
|
375
|
380
|
echo '' >> $WIFI_CONFIG
|
376
|
381
|
|