summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2013-11-16 23:12:11 +0100
committerJouke Witteveen <j.witteveen@gmail.com>2013-11-16 23:12:11 +0100
commit3dc6d75f5fa4813fe5c998b13582912fffd88159 (patch)
tree33f8dc4ab10e7db409ad12562d5430fa1aad0a57
parentd378bb8d684c62593a4d5cbac9d0ebe4f81fac4b (diff)
downloadnetctl-3dc6d75f5fa4813fe5c998b13582912fffd88159.tar.gz
netctl-3dc6d75f5fa4813fe5c998b13582912fffd88159.tar.xz
Fix typo in detection of hex keys
Errata to f5065. $Key has a capital.
-rw-r--r--src/lib/wpa4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/wpa b/src/lib/wpa
index 6f21c0f..ff869db 100644
--- a/src/lib/wpa
+++ b/src/lib/wpa
@@ -218,7 +218,7 @@ wpa_make_config_block() {
wep)
echo "key_mgmt=NONE"
echo "wep_tx_keyidx=0"
- if (( ${#Key} % 2 == 0 )) && [[ "$key" = +([[:xdigit:]]) ]]; then
+ if (( ${#Key} % 2 == 0 )) && [[ "$Key" = +([[:xdigit:]]) ]]; then
echo "wep_key0=$Key"
else
echo "wep_key0=$(wpa_quote "$Key")"
@@ -226,7 +226,7 @@ wpa_make_config_block() {
;;
wpa)
echo "proto=RSN WPA"
- if [[ "${#key}" -eq 64 && "$key" = +([[:xdigit:]]) ]]; then
+ if [[ "${#Key}" -eq 64 && "$Key" = +([[:xdigit:]]) ]]; then
echo "psk=$Key"
else
echo "psk=$(wpa_quote "$Key")"