summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-05-19 21:31:52 -0700
committerKeith Packard <keithp@keithp.com>2017-05-19 21:31:52 -0700
commitcbec54fc682774f096dc2e43ef9a4796be123341 (patch)
tree708e898dff37bee28e311f839bebf54f48ce26c0
parent2cf4d76745713051c6ee9cf8d4b386c25f822433 (diff)
ao-bringup: turnon_chaoskey: search for ao-usbload in PATH
Don't assume it's in /usr/bin Signed-off-by: Keith Packard <keithp@keithp.com>
-rwxr-xr-xao-bringup/turnon_chaoskey4
1 files changed, 2 insertions, 2 deletions
diff --git a/ao-bringup/turnon_chaoskey b/ao-bringup/turnon_chaoskey
index 990382f4..1a8fe13f 100755
--- a/ao-bringup/turnon_chaoskey
+++ b/ao-bringup/turnon_chaoskey
@@ -7,8 +7,8 @@ else
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