21 lines
365 B
Bash
Executable File
21 lines
365 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# first device connected
|
|
|
|
idf.py clean
|
|
idf.py -DROLE=SENDER build
|
|
|
|
rm build/wellhub.enc.bin
|
|
|
|
ret_val=$?
|
|
|
|
if (($ret_val != 0)); then
|
|
exit
|
|
fi
|
|
|
|
image_enc/encrypt.py build/wellhub.bin build/wellhub.enc.bin
|
|
|
|
cp build/wellhub.enc.bin /var/www/esp_ota
|
|
lftp -c "open -u mirozmrzli@bigfoot-inc.com,3445trGGDSa9 ftp.bigfoot-inc.com; put build/wellhub.enc.bin"
|
|
|