summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 $?