5 if [ "`id -u`" != "0" ]; then
6 exec sudo
"${0}" "${@}"
9 if [ "`lsusb -d 03eb:204b`" != "" ]; then
10 echo "Found running CUL, entering bootloader..."
11 echo "B01" >/dev
/ttyACM0
15 if [ "`lsusb -d 03eb:2ff4`" != "" ]; then
16 echo "Found CUL in bootloader-mode"
18 echo "No CUL in bootloader-mode found or unable to enter bootloader mode!"
23 dfu-programmer atmega32u4 erase
24 dfu-programmer atmega32u4 flash CUL_V3.hex
25 dfu-programmer atmega32u4 start