projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7821e34
)
ao-bringup: Find dfu-util in $PATH for chaoskey
author
Keith Packard
<keithp@keithp.com>
Sun, 17 Jun 2018 07:19:37 +0000
(
00:19
-0700)
committer
Keith Packard
<keithp@keithp.com>
Sun, 17 Jun 2018 08:22:22 +0000
(
01:22
-0700)
In case it's not in /usr/bin
Signed-off-by: Keith Packard <keithp@keithp.com>
ao-bringup/turnon_chaoskey
patch
|
blob
|
history
diff --git
a/ao-bringup/turnon_chaoskey
b/ao-bringup/turnon_chaoskey
index d710e5ff19a89fda20da27b6f86c47372cf4f137..9ad809122bd847139239ebc77d10b56a1886c96f 100755
(executable)
--- 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