diff --git a/java_console/bin/dfu_switch_and_program.sh b/java_console/bin/dfu_switch_and_program.sh new file mode 100755 index 0000000000..2b4d3cb65a --- /dev/null +++ b/java_console/bin/dfu_switch_and_program.sh @@ -0,0 +1,10 @@ +#!/bin/bash +dfu_file=$(ls *dfu | head -1) +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} \ No newline at end of file