Add smarter api call function
parent
181a3b0fd3
commit
ed690495d2
@ -1,3 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
rm -rfv firmware *.bin* fwname listing.txt
|
||||
rm -rfv firmware *.bin* fwname listing.txt
|
||||
sleep 1
|
||||
echo "HELLO"
|
||||
echo "GOODBYE"
|
||||
sleep 1
|
@ -0,0 +1,8 @@
|
||||
mkdir -p build
|
||||
cd build
|
||||
|
||||
# wget https://busybox.net/downloads/busybox-1.36.1.tar.bz2
|
||||
|
||||
# tar -xvf busybox-1.36.1.tar.bz2
|
||||
|
||||
cd busybox-*
|
@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
if (! [ -e apidetails.csv ]) || (! [ -e apicert.crt ]); then
|
||||
|
||||
echo "Downloading firmware for device..."
|
||||
./download-fw.sh
|
||||
|
||||
echo "Extracting firmware..."
|
||||
./extract.sh $(cat fwname)
|
||||
|
||||
DIR=./firmware/www/tool/
|
||||
echo "tool_directory: $DIR
|
||||
app_config_directory: ." > config.yml
|
||||
|
||||
echo "Extracting API keys..."
|
||||
python get_codes.py > /dev/null
|
||||
echo "Cleaning up..."
|
||||
./cleanup.sh > /dev/null
|
||||
echo "API client is setup."
|
||||
else
|
||||
echo "Already setup."
|
||||
fi
|
@ -1,15 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
if ! [ -e apidetails.csv ]; then
|
||||
|
||||
./download-fw.sh
|
||||
./extract.sh $(cat fwname)
|
||||
DIR=./firmware/www/tool/
|
||||
|
||||
echo "tool_directory: $DIR
|
||||
app_config_directory: ." > config.yml
|
||||
|
||||
python get_codes.py
|
||||
|
||||
./cleanup.sh
|
||||
fi
|
Loading…
Reference in New Issue