Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updated to output key in hex form for wpa networks

  • Loading branch information...
commit 77a4e4edf6ce4e8590d151868b07078fefcebf6c 1 parent 72aa380
Chris Borrell borrell authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 wifi-select
5 wifi-select
View
@@ -222,6 +222,11 @@ if [[ $RESULT = 0 ]]; then
clear
exit_fail "No security key entered, aborting"
fi
+
+ if [[ $SECURITY = "wpa" ]]; then
+ # convert the key to hexidecimal string
+ KEY=`wpa_passphrase $ESSID "$KEY" | awk '/^[^#]psk=/ {print $1}'|cut -d = -f2`
+ fi
fi
# create a new profile
Please sign in to comment.
Something went wrong with that request. Please try again.