mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2024-12-30 09:56:24 -05:00
12 lines
225 B
Bash
12 lines
225 B
Bash
|
#!/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
|