Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
[fw/altos] / ao-bringup / turnon_chaoskey
index 990382f48e56cc268905999596427204bf24e1a8..1a8fe13f37a5503a7f7547fcdd3a0506c012e965 100755 (executable)
@@ -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