From 966153a5b77ff7bf6770109da7cf0511258fdbc8 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sat, 15 Aug 2020 11:58:08 -0400 Subject: [PATCH] REO progress --- java_console/bin/dfu_switch_and_program.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 java_console/bin/dfu_switch_and_program.sh 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