rusefi/java_console/bin/dfu_switch_and_program.sh

11 lines
284 B
Bash
Raw Permalink Normal View History

2020-08-15 08:58:08 -07:00
#!/bin/bash
dfu_file=$(ls *dfu | head -1)
2020-10-07 20:16:47 -07:00
echo dfu_switch_and_program.sh $dfu_file
2020-08-15 08:58:08 -07:00
if [ -z "$dfu_file" ]
then
echo "No .dfu file(s) found"
exit 1
fi
echo Found ${dfu_file}
java -jar console/rusefi_console.jar reboot_dfu
java -jar console/rusefi_console.jar dfu ${dfu_file}