From ea1d24151cf76ae8f2368673317b66958e2508c4 Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Tue, 29 Sep 2015 00:45:27 -0600 Subject: [PATCH] add automatic Bluetooth functionality check to turnon_telebt --- ao-bringup/turnon_telebt | 9 +++++++++ 1 file changed, 9 insertions(+) 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 $? -- 2.30.2