projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ao-bringup: turnon_chaoskey: search for ao-usbload in PATH
[fw/altos]
/
ao-bringup
/
turnon_chaoskey
diff --git
a/ao-bringup/turnon_chaoskey
b/ao-bringup/turnon_chaoskey
index 8ac8479e337a7e0a537972b6bafc85772334c47f..1a8fe13f37a5503a7f7547fcdd3a0506c012e965 100755
(executable)
--- a/
ao-bringup/turnon_chaoskey
+++ b/
ao-bringup/turnon_chaoskey
@@
-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
@@
-35,10
+35,6
@@
$USBLOAD --serial=1 $ALTOS_FILE || exit 1
sleep 1
sleep 1
-serial=`dmesg | grep 'on chaoskey' | tail -1 | sed 's/.*chaoskey \([0-9a-f][0-9a-f]*\) on chaoskey.*/\1/'`
-
-echo 'Testing ChaosKey' $serial
-
-./test-chaoskey $serial
+./test-chaoskey
exit $?
exit $?