blob: ac473688100615375b529badd5c628d7dbb86a6c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/bash
DEVICE_FILE="/dev/ttyACM0"
if [ -c $DEVICE_FILE ]; then
echo "resetting device .."
echo $1 > /dev/ttyACM0
else
echo "'$DEVICE_FILE' not found ... device is probably already in bootloader mode - doing nothing"
fi
exit 0
|