ao-bringup: turnon_chaoskey: search for ao-usbload in PATH
authorKeith Packard <keithp@keithp.com>
Sat, 20 May 2017 04:31:52 +0000 (21:31 -0700)
committerKeith 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

index 990382f48e56cc268905999596427204bf24e1a8..1a8fe13f37a5503a7f7547fcdd3a0506c012e965 100755 (executable)
@@ -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