Files
hackrf/ci-scripts/test_host.sh
2026-02-27 16:40:35 -07:00

20 lines
463 B
Bash
Executable File

#!/bin/bash
host/build/hackrf-tools/src/hackrf_info
EXIT_CODE="$?"
if [ "$EXIT_CODE" == "1" ]
then
echo "Host tool installation success! Exiting.."
exit 0
elif [ "$EXIT_CODE" == "0" ]
then
echo "Failed to boot HackRF into DFU mode! Check DFU pin jumper. Exiting.."
exit 1
elif [ "$EXIT_CODE" == "127" ]
then
echo "Host tool installation failed! Exiting.."
exit $EXIT_CODE
else
echo "god have mercy on your soul"
exit $EXIT_CODE
fi