ifup-wireless: the PSK parameter need to be quoted

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
Davide Madrisan 2013-02-22 22:39:51 +01:00
parent 333285d76d
commit f0bab9063e

View File

@ -150,13 +150,13 @@ if [ "$WIRELESS_ESSID" -o "$WIRELESS_ENC" ]; then
cat >> $tmpfile1 << _EOF
ctrl_interface=/var/run/wpa_supplicant
network={
scan_ssid=0
ssid="$WIRELESS_ESSID"
proto=WPA
key_mgmt=WPA-$WIRELESS_AUTO_Authentication_Suites
pairwise=$WIRELESS_AUTO_Pairwise_Ciphers
group=$WIRELESS_AUTO_Group_Cipher
psk=$WPA_PSK
scan_ssid=0
ssid="$WIRELESS_ESSID"
proto=WPA
key_mgmt=WPA-$WIRELESS_AUTO_Authentication_Suites
pairwise=$WIRELESS_AUTO_Pairwise_Ciphers
group=$WIRELESS_AUTO_Group_Cipher
psk="$WPA_PSK"
}
_EOF
wpa_supplicant -Dwext -i${DEVICE} -c $tmpfile1 -B