20 lines
390 B
Bash
20 lines
390 B
Bash
#!/bin/bash
|
|
|
|
# first device connected
|
|
|
|
idf.py clean
|
|
idf.py -DROLE=SENDER build
|
|
|
|
ret_val=$?
|
|
|
|
if (($ret_val != 0)); then
|
|
exit
|
|
fi
|
|
|
|
rm build/wellhub.enc.bin 2> /dev/null
|
|
echo "Encrypting image..."
|
|
image_enc/encrypt.py build/wellhub.bin build/wellhub.enc.bin
|
|
echo "Uploading..."
|
|
lftp -c "open -u well_ftpuser,%%2025!#_ThisIsaLL wellnua.com; put -O FW build/wellhub.enc.bin"
|
|
|