You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
764 B
Bash
40 lines
764 B
Bash
#!/bin/bash
|
|
|
|
cd ./deploy/
|
|
|
|
if [ -f ./src.bin ] ; then
|
|
|
|
tree -s ./
|
|
|
|
if [ -f ./input/payload.bin ] ; then
|
|
rm -rf ./input/payload.bin || true
|
|
fi
|
|
|
|
tree -s ./input/
|
|
|
|
./hss-payload-generator -vv -c config.yaml ./input/payload.bin
|
|
|
|
date
|
|
unset test_var
|
|
test_var=$(strings ./u-boot.bin | grep 'U-Boot 20' | head -n1 || true)
|
|
if [ ! "x${test_var}" = "x" ] ; then
|
|
echo "[u-boot.bin: ${test_var}]"
|
|
fi
|
|
|
|
unset test_var
|
|
test_var=$(strings ./src.bin | grep 'U-Boot 20' | head -n1 || true)
|
|
if [ ! "x${test_var}" = "x" ] ; then
|
|
echo "[src.bin: ${test_var}]"
|
|
fi
|
|
|
|
unset test_var
|
|
test_var=$(strings ./input/payload.bin | grep 'U-Boot 20' | head -n1 || true)
|
|
if [ ! "x${test_var}" = "x" ] ; then
|
|
echo "[payload.bin:${test_var}]"
|
|
fi
|
|
|
|
tree -s ./input/
|
|
fi
|
|
|
|
#
|