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:46:35 -0600 |
commit | ea1d24151cf76ae8f2368673317b66958e2508c4 (patch) | |
tree | e6ce4b0392190dfd66a0aff9cb7b7df243f80b8d /ao-bringup | |
parent | eaab49ab1859ebe236a201f93b5352e67aa7ed2b (diff) |
add automatic Bluetooth functionality check to turnon_telebt
Diffstat (limited to 'ao-bringup')
-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 $? |