diff options
author | James Rayner <james@archlinux.org> | 2008-12-18 07:12:51 +0100 |
---|---|---|
committer | James Rayner <james@archlinux.org> | 2008-12-18 07:12:51 +0100 |
commit | 41197e24cfe9d2bf040d411e6c438aff516d943f (patch) | |
tree | 715a9b41e30c9b9d3a97e9084db301ab81a40dd7 /src/connections | |
parent | 07514350b8404670e14f764ef6b3a9114469621e (diff) | |
download | netctl-41197e24cfe9d2bf040d411e6c438aff516d943f.tar.gz netctl-41197e24cfe9d2bf040d411e6c438aff516d943f.tar.xz |
FS11818, improve key handling, use subshells to avoid scope issues after libify
Diffstat (limited to 'src/connections')
-rw-r--r-- | src/connections/wireless | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/connections/wireless b/src/connections/wireless index dbc2a29..bdf458a 100644 --- a/src/connections/wireless +++ b/src/connections/wireless @@ -77,7 +77,7 @@ wireless_up() { # Generate configuration if [[ "${#KEY}" == "64" ]]; then echo -e 'network={ \nssid="$ESSID" \npsk=$KEY \n}'> $WPA_CONF - elif ! wpa_passphrase "$ESSID" "$KEY" >> $WPA_CONF; then + elif ! echo "$KEY" | wpa_passphrase "$ESSID" >> $WPA_CONF; then err_append "Configuration generation failed: `cat $WPA_CONF`" return 1 fi |