FreeBSD Bugzilla – Attachment 177623 Details for
Bug 214933
[patch] bsdinstall: add support for "hidden" Wi-Fi networks
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
the patch [2]
bsdinstall-wireless.patch (text/plain), 1.99 KB, created by
Maxim Filimonov
on 2016-12-03 00:08:18 UTC
(
hide
)
Description:
the patch [2]
Filename:
MIME Type:
Creator:
Maxim Filimonov
Created:
2016-12-03 00:08:18 UTC
Size:
1.99 KB
patch
obsolete
>Index: usr.sbin/bsdinstall/scripts/wlanconfig >=================================================================== >--- usr.sbin/bsdinstall/scripts/wlanconfig (revision 309449) >+++ usr.sbin/bsdinstall/scripts/wlanconfig (working copy) >@@ -207,6 +207,7 @@ > > while : > do >+ SCANSSID=0 > output=$( wpa_cli scan 2>&1 ) > f_dprintf "%s" "$output" > dialog --backtitle "FreeBSD Installer" --title "Scanning" \ >@@ -236,7 +237,25 @@ > break > ;; > 1) # Cancel >- exit 1 >+ # here we ask if the user wants to select the network manually >+ f_dialog_yesno "Do you want to select the network manually?" || exit >+ # and take the manual input >+ # first, take the ssid >+ f_dialog_title "Network Selection" >+ f_dialog_input NETWORK "Enter SSID" || exit >+ f_dialog_title_restore >+ # then, the encryption >+ ENCRYPTION=$(dialog --backtitle "FreeBSD Installer" --title \ >+ "Network Selection" --menu "Select encryption type" 0 0 0 \ >+ "WPA/WPA2 PSK" "" "WPA/WPA2 EAP" "" "WEP" "" \ >+ "None" "" 2>&1 1>&3) >+ [ $? -eq 0 ] || exit 1 >+ SCANSSID=1 >+ break >+ 1) # No >+ exit 1 >+ ;; >+ esac > ;; > 3) # Rescan > ;; >@@ -244,7 +263,7 @@ > exec 3>&- > done > >-ENCRYPTION=`echo "$NETWORKS" | awk -F '\t' \ >+[ -z "$ENCRYPTION" ] && ENCRYPTION=`echo "$NETWORKS" | awk -F '\t' \ > "/^\"$NETWORK\"\t/ {printf(\"%s\n\", \\\$2 );}"` > > if echo $ENCRYPTION | grep -q 'PSK'; then >@@ -258,6 +277,7 @@ > exec 3>&- > echo "network={ > ssid=\"$NETWORK\" >+ scan_ssid=$SCANSSID > psk=\"$PASS\" > priority=5 > }" >> $BSDINSTALL_TMPETC/wpa_supplicant.conf >@@ -273,6 +293,7 @@ > exec 3>&- > echo "network={ > ssid=\"$NETWORK\" >+ scan_ssid=$SCANSSID > key_mgmt=WPA-EAP" >> $BSDINSTALL_TMPETC/wpa_supplicant.conf > echo "$USERPASS" | awk ' > { >@@ -294,6 +315,7 @@ > || exec $0 $@ > echo "network={ > ssid=\"$NETWORK\" >+ scan_ssid=$SCANSSID > key_mgmt=NONE > wep_key0=\"$WEPKEY\" > wep_tx_keyidx=0 >@@ -302,6 +324,7 @@ > else # Open > echo "network={ > ssid=\"$NETWORK\" >+ scan_ssid=$SCANSSID > key_mgmt=NONE > priority=5 > }" >> $BSDINSTALL_TMPETC/wpa_supplicant.conf
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 214933
:
177523
|
177623
|
177635
|
177641