summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJames Rayner <james@archlinux.org>2009-02-16 11:39:21 +0100
committerJames Rayner <james@archlinux.org>2009-02-16 11:39:21 +0100
commit540c2d8619f8103c1b4374a50a502ecbec90c953 (patch)
tree93edd3008659b6e4d939d882de02a67e367442c6 /src
parent3b0fc87396c3782b9011b4d89c05cffd8c255d5d (diff)
downloadnetctl-540c2d8619f8103c1b4374a50a502ecbec90c953.tar.gz
netctl-540c2d8619f8103c1b4374a50a502ecbec90c953.tar.xz
FS#13165 - netcfg creates bad wpa_supplicant config when using full hex key
Diffstat (limited to 'src')
-rw-r--r--src/connections/wireless2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/connections/wireless b/src/connections/wireless
index 76f451d..688fa98 100644
--- a/src/connections/wireless
+++ b/src/connections/wireless
@@ -82,7 +82,7 @@ wireless_up() {
# Generate configuration
if [[ "${#KEY}" == "64" ]]; then
- echo -e 'network={ \nssid="$ESSID" \npsk=$KEY \n}'> $WPA_CONF
+ echo -e "network={ \nssid=\"$ESSID\" \npsk=$KEY \n}">> $WPA_CONF
elif ! echo "$KEY" | wpa_passphrase "$ESSID" >> $WPA_CONF; then
err_append "Configuration generation failed. $(cat $WPA_CONF)"
return 1