28 lines
469 B
Bash
Raw Normal View History

2025-05-10 21:49:39 +08:00
#!/bin/bash
function test_bt() {
bt_pcba_test
sleep 5
hciconfig hci0 up && hciconfig -a | grep UP
if [ $? -ne 0 ];then
echo "The bt test fail !!!"
dmesg > /userdata/rockchip-test/bt_dmesg.txt
exit 11
fi
}
function main() {
while true; do
test_bt
sleep 1
cnt=$((cnt + 1))
echo "
#################################################
# The BT has been tuned on/off for $cnt times #
#################################################
"
done
}
main