diff --git a/deploy.sh b/deploy.sh index 17e8126..53f69a9 100755 --- a/deploy.sh +++ b/deploy.sh @@ -22,6 +22,16 @@ then echo "install with this command: cargo install cargo-espflash" exit 1 fi +if [ -z "$SSID" ] +then + echo "Please set environment variable SSID to the SSID of the wifi you'll use to configure your sphinx-key." + exit 1 +fi +if [ -z "$PASS" ] +then + echo "Please set environment variable PASS to the password of the wifi you'll use to configure your sphinx-key." + exit 1 +fi for FILE in /dev/tty.* do if check_port $FILE diff --git a/sphinx-key/README.md b/sphinx-key/README.md index 6ff8c4d..d5568f0 100644 --- a/sphinx-key/README.md +++ b/sphinx-key/README.md @@ -75,6 +75,8 @@ cargo generate --vcs none --git https://github.com/esp-rs/esp-idf-template cargo - `cd ~` - `git clone https://github.com/stakwork/sphinx-key.git` - `cd sphinx-key` +- `export SSID=wifi_name_you'll_use_to_configure_sphinx_key}` +- `export PASS=password_of_wifi_you'll_use_to_configure_sphinx_key` - `./deploy.sh`. This commands takes a while, it builds and flashes everything! - You will eventually be shown the logs of the signer. - Wait for the message `Waiting for data from the phone!`. The LED should blink green.