diff options
author | Keith Packard <keithp@keithp.com> | 2017-05-19 21:31:52 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2017-05-19 21:31:52 -0700 |
commit | cbec54fc682774f096dc2e43ef9a4796be123341 (patch) | |
tree | 708e898dff37bee28e311f839bebf54f48ce26c0 | |
parent | 2cf4d76745713051c6ee9cf8d4b386c25f822433 (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-x | ao-bringup/turnon_chaoskey | 4 |
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 |