From c72f0b47ff01045608bf3ac15c1ab80546d72e1a Mon Sep 17 00:00:00 2001 From: Sam Tygier Date: Sat, 5 Jan 2019 20:34:47 +0000 Subject: [PATCH] Quote wpa wifi variables Allows essid and passwords with special characters. --- stage2/02-net-tweaks/01-run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 <> "/etc/wpa_supplicant/wpa_supplicant.conf" +wpa_passphrase "${WPA_ESSID}" "${WPA_PASSWORD}" >> "/etc/wpa_supplicant/wpa_supplicant.conf" EOF fi