summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBdale Garbee <bdale@gag.com>2015-09-29 00:45:27 -0600
committerBdale Garbee <bdale@gag.com>2015-09-29 00:45:27 -0600
commit19d25c9f4c80d2c8562fc4abd766a23961167e79 (patch)
tree3443a235ff0f4287d41c20157b47e6b50645f2c0
parentabbdc83db93d5e228241b4eea24cd444f44eea57 (diff)
add automatic Bluetooth functionality check to turnon_telebt
-rwxr-xr-xao-bringup/turnon_telebt9
1 files changed, 9 insertions, 0 deletions
diff --git a/ao-bringup/turnon_telebt b/ao-bringup/turnon_telebt
index 7c036bc2..509814d3 100755
--- a/ao-bringup/turnon_telebt
+++ b/ao-bringup/turnon_telebt
@@ -56,6 +56,15 @@ SERIAL=$SERIAL ./cal-freq $dev
echo 'E 1' > $dev
+echo -n "checking BlueTooth functionality... "
+btdev=`hcitool scan | awk -F \- '/TeleBT/ { print $2 }'`
+if [ "$btdev" = "$SERIAL" ]; then
+ echo "working!"
+else
+ echo "device not found"
+ exit 1
+fi
+
echo "TeleBT-v$VERSION $SERIAL is ready to ship"
exit $?