aboutsummaryrefslogtreecommitdiffstats
path: root/stage2
diff options
context:
space:
mode:
authorSam Tygier <[email protected]>2019-01-05 20:34:47 +0000
committerXECDesign <[email protected]>2019-01-22 17:44:28 +1000
commitc72f0b47ff01045608bf3ac15c1ab80546d72e1a (patch)
tree09c01db6d43e5874b33be0a8375540e4177a607b /stage2
parent9714a11204f2c937a1c8b7d5c654426ed6c6909b (diff)
Quote wpa wifi variables
Allows essid and passwords with special characters.
Diffstat (limited to 'stage2')
-rwxr-xr-xstage2/02-net-tweaks/01-run.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/stage2/02-net-tweaks/01-run.sh b/stage2/02-net-tweaks/01-run.sh
index 2192943..6180ebc 100755
--- a/stage2/02-net-tweaks/01-run.sh
+++ b/stage2/02-net-tweaks/01-run.sh
@@ -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