1
0
mirror of https://github.com/raphnet/gc_n64_usb-v3 synced 2024-12-22 07:18:52 -05:00
gc_n64_usb-v3/scripts/start.sh
Raphael Assenat 158d9bffda Makefile 'restart' target
Useful for some tests...
2017-01-08 16:19:41 -05:00

22 lines
237 B
Bash
Executable File

#!/bin/bash
if [ $# -ne 1 ]; then
echo "Syntax: ./start.sh CPU"
exit 1;
fi
CPU=$1
echo "Polling for chip..."
while true; do
dfu-programmer $1 start
if [ $? -eq 0 ]; then
echo "Chip found. Started."
break;
fi
sleep 1
done