From: Bdale Garbee Date: Tue, 29 Sep 2015 06:45:27 +0000 (-0600) Subject: add automatic Bluetooth functionality check to turnon_telebt X-Git-Tag: 1.6.2^2~63 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=ea1d24151cf76ae8f2368673317b66958e2508c4 add automatic Bluetooth functionality check to turnon_telebt --- 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 $?