From cbec54fc682774f096dc2e43ef9a4796be123341 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Fri, 19 May 2017 21:31:52 -0700 Subject: [PATCH] ao-bringup: turnon_chaoskey: search for ao-usbload in PATH Don't assume it's in /usr/bin Signed-off-by: Keith Packard --- ao-bringup/turnon_chaoskey | 4 ++-- 1 file 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 -- 2.30.2