mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2024-12-21 05:44:24 -05:00
12 lines
225 B
Bash
Executable File
12 lines
225 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
iceprog -I B interface_fpga_usb.bin
|
|
echo 'Waiting 2s for USB to stabalize'
|
|
sleep 2
|
|
if lsusb -d 1d50:6159; then
|
|
echo 'device found, USB test passed'
|
|
else
|
|
echo 'device not found, USB test failed'
|
|
fi
|