pico-hsm/tests/startup.sh
Pol Henarejos 78cbe59e64
Fix startup
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
2023-10-09 17:58:32 +02:00

21 lines
374 B
Bash

#!/bin/bash
OK="\033[32mok\033[0m"
FAIL="\033[31mfail\033[0m"
echo -n "Start PCSC... "
/usr/sbin/pcscd &
test $? -eq 0 && echo -e "${OK}" || {
echo -e "${FAIL}"
exit 1
}
sleep 2
rm -f memory.flash
tar -xf tests/memory.tar.gz
echo -n "Start Pico HSM... "
./build_in_docker/pico_hsm &
test $? -eq 0 && echo -e "${OK}" || {
echo -e "${FAIL}"
exit 1
}
sleep 2