Skip to content

Commit

Permalink
Quote wpa wifi variables
Browse files Browse the repository at this point in the history
Allows essid and passwords with special characters.
  • Loading branch information
samtygier authored and XECDesign committed Jan 22, 2019
1 parent 9714a11 commit c72f0b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stage2/02-net-tweaks/01-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ fi
if [ -v WPA_ESSID -a -v WPA_PASSWORD ]
then
on_chroot <<EOF
wpa_passphrase ${WPA_ESSID} ${WPA_PASSWORD} >> "/etc/wpa_supplicant/wpa_supplicant.conf"
wpa_passphrase "${WPA_ESSID}" "${WPA_PASSWORD}" >> "/etc/wpa_supplicant/wpa_supplicant.conf"
EOF
fi

0 comments on commit c72f0b4

Please sign in to comment.