diff options
author | Bdale Garbee <bdale@gag.com> | 2015-09-29 00:45:27 -0600 |
---|---|---|
committer | Bdale Garbee <bdale@gag.com> | 2015-09-29 00:45:27 -0600 |
commit | 19d25c9f4c80d2c8562fc4abd766a23961167e79 (patch) | |
tree | 3443a235ff0f4287d41c20157b47e6b50645f2c0 | |
parent | abbdc83db93d5e228241b4eea24cd444f44eea57 (diff) |
add automatic Bluetooth functionality check to turnon_telebt
-rwxr-xr-x | ao-bringup/turnon_telebt | 9 |
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 $? |