projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2cf4d76
)
ao-bringup: turnon_chaoskey: search for ao-usbload in PATH
author
Keith Packard
<keithp@keithp.com>
Sat, 20 May 2017 04:31:52 +0000
(21:31 -0700)
committer
Keith Packard
<keithp@keithp.com>
Sat, 20 May 2017 04:31:52 +0000
(21:31 -0700)
Don't assume it's 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 990382f48e56cc268905999596427204bf24e1a8..1a8fe13f37a5503a7f7547fcdd3a0506c012e965 100755
(executable)
--- a/
ao-bringup/turnon_chaoskey
+++ b/
ao-bringup/turnon_chaoskey
@@
-7,8
+7,8
@@
else
exit 1
fi
exit 1
fi
-if [ -x
/usr/bin/ao-usbload
]; then
- USBLOAD=
/usr/bin/ao-usbload
+if [ -x
`which ao-usbload`
]; then
+ USBLOAD=
`which ao-usbload`
else
echo "Can't find ao-usbload! Aborting."
exit 1
else
echo "Can't find ao-usbload! Aborting."
exit 1