Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106138374
D13190.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D13190.diff
View Options
Index: head/usr.sbin/bsdinstall/scripts/wlanconfig
===================================================================
--- head/usr.sbin/bsdinstall/scripts/wlanconfig
+++ head/usr.sbin/bsdinstall/scripts/wlanconfig
@@ -280,14 +280,14 @@
2>&1 >&$DIALOG_TERMINAL_PASSTHRU_FD
) || exec "$0" "$@"
awk 'sub(/^\t/,"")||1' \
- >> "$BSDINSTALL_TMPETC/wpa_supplicant.conf" <<-EOF
- network={
- ssid="$NETWORK"
- scan_ssid=$SCANSSID
- psk="$PASS"
- priority=5
- }
- EOF
+ >> "$BSDINSTALL_TMPETC/wpa_supplicant.conf" <<EOF
+network={
+ ssid="$NETWORK"
+ scan_ssid=$SCANSSID
+ psk="$PASS"
+ priority=5
+}
+EOF
elif echo "$ENCRYPTION" | grep -q EAP; then
USERPASS=$( $DIALOG \
--title "WPA-Enterprise Setup" \
@@ -301,18 +301,18 @@
2>&1 >&$DIALOG_TERMINAL_PASSTHRU_FD
) || exec "$0" "$@"
awk 'sub(/^\t/,"")||1' \
- >> "$BSDINSTALL_TMPETC/wpa_supplicant.conf" <<-EOF
- network={
- ssid="$NETWORK"
- scan_ssid=$SCANSSID
- key_mgmt=WPA-EAP$(
- echo "$USERPASS" | awk '
- NR == 1 { printf "\n\t\tidentity=\"%s\"", $1 }
- NR == 2 { printf "\n\t\tpassword=\"%s\"", $1 }
- ' )
- priority=5
- }
- EOF
+ >> "$BSDINSTALL_TMPETC/wpa_supplicant.conf" <<EOF
+network={
+ ssid="$NETWORK"
+ scan_ssid=$SCANSSID
+ key_mgmt=WPA-EAP$(
+ echo "$USERPASS" | awk '
+ NR == 1 { printf "\n\t\tidentity=\"%s\"", $1 }
+ NR == 2 { printf "\n\t\tpassword=\"%s\"", $1 }
+ ' )
+ priority=5
+}
+EOF
elif echo "$ENCRYPTION" | grep -q WEP; then
WEPKEY=$( $DIALOG \
--title "WEP Setup" \
@@ -325,26 +325,26 @@
2>&1 >&$DIALOG_TERMINAL_PASSTHRU_FD
) || exec "$0" "$@"
awk 'sub(/^\t/,"")||1' \
- >> "$BSDINSTALL_TMPETC/wpa_supplicant.conf" <<-EOF
- network={
- ssid="$NETWORK"
- scan_ssid=$SCANSSID
- key_mgmt=NONE
- wep_key0="$WEPKEY"
- wep_tx_keyidx=0
- priority=5
- }
- EOF
+ >> "$BSDINSTALL_TMPETC/wpa_supplicant.conf" <<EOF
+network={
+ ssid="$NETWORK"
+ scan_ssid=$SCANSSID
+ key_mgmt=NONE
+ wep_key0="$WEPKEY"
+ wep_tx_keyidx=0
+ priority=5
+}
+EOF
else # Open
awk 'sub(/^\t/,"")||1' \
- >> "$BSDINSTALL_TMPETC/wpa_supplicant.conf" <<-EOF
- network={
- ssid="$NETWORK"
- scan_ssid=$SCANSSID
- key_mgmt=NONE
- priority=5
- }
- EOF
+ >> "$BSDINSTALL_TMPETC/wpa_supplicant.conf" <<EOF
+network={
+ ssid="$NETWORK"
+ scan_ssid=$SCANSSID
+ key_mgmt=NONE
+ priority=5
+}
+EOF
fi
# Connect to any open networks policy
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 27, 12:59 AM (11 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15609670
Default Alt Text
D13190.diff (2 KB)
Attached To
Mode
D13190: Fix indentation in bsdinstall-created wpa_supplicant.conf
Attached
Detach File
Event Timeline
Log In to Comment