summaryrefslogtreecommitdiff
path: root/setup-interfaces.in
diff options
context:
space:
mode:
Diffstat (limited to 'setup-interfaces.in')
-rw-r--r--setup-interfaces.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup-interfaces.in b/setup-interfaces.in
index e6cbf57..9933759 100644
--- a/setup-interfaces.in
+++ b/setup-interfaces.in
@@ -140,7 +140,7 @@ config_wpa_supp() {
local iface="$1" essid="$2" auth_type="$3" psk="$4"
local conffile=/etc/wpa_supplicant/wpa_supplicant.conf
if [ "$auth_type" = "WPA-PSK" ]; then
- wpa_passphrase "$essid" "$psk" >> "$conffile"
+ (umask 0077 && wpa_passphrase "$essid" "$psk" | sed -e '/^\t#psk=.*/d' >> "$conffile")
else
cat << EOF >> $conffile
network={