ao-bringup: make turnon_telemini search for ao_usbload on $PATH
authorKeith Packard <keithp@keithp.com>
Wed, 26 Apr 2017 04:27:40 +0000 (21:27 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 26 Apr 2017 06:56:57 +0000 (23:56 -0700)
I've uninstalled the altos package as it has a version of ao-usbload
which is too old for telemini.

Signed-off-by: Keith Packard <keithp@keithp.com>
ao-bringup/turnon_telemini

index 1958de2a709f44fa6aac76d8be5eede0d4828a33..23031481dac46aa2c5f79d5589767c5f6e683f43 100755 (executable)
@@ -7,8 +7,8 @@ else
     exit 1
 fi
 
-if [ -x /usr/bin/ao-usbload ]; then
-       USBLOAD=/usr/bin/ao-usbload
+if which ao-usbload > /dev/null; then
+       USBLOAD=`which ao-usbload`
 else
        echo "Can't find ao-usbload!  Aborting."
        exit 1