From 96835cc841ff7afad0b4d2fe4b63f26b951da122 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 17 Jun 2018 00:19:37 -0700 Subject: [PATCH] ao-bringup: Find dfu-util in $PATH for chaoskey In case it's not in /usr/bin Signed-off-by: Keith Packard --- ao-bringup/turnon_chaoskey | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ao-bringup/turnon_chaoskey b/ao-bringup/turnon_chaoskey index d710e5ff..9ad80912 100755 --- a/ao-bringup/turnon_chaoskey +++ b/ao-bringup/turnon_chaoskey @@ -1,7 +1,7 @@ #!/bin/sh -if [ -x /usr/bin/dfu-util ]; then - DFU_UTIL=/usr/bin/dfu-util +if [ -x `which dfu-util` ]; then + DFU_UTIL=`which dfu-util` else echo "Can't find dfu-util! Aborting." exit 1 @@ -33,7 +33,7 @@ $DFU_UTIL -a 0 -s 0x08000000:leave -D $FLASH_FILE || true #$USBLOAD --serial=1 $ALTOS_FILE || exit 1 -sleep 1 +sleep 3 ./test-chaoskey -- 2.30.2