diff --git a/recipes-testing/ti-calibrator-wl18xx/ti-calibrator-wl18xx/btgod-ng b/recipes-testing/ti-calibrator-wl18xx/ti-calibrator-wl18xx/btgod-ng index a9f8c80..2aebc36 100644 --- a/recipes-testing/ti-calibrator-wl18xx/ti-calibrator-wl18xx/btgod-ng +++ b/recipes-testing/ti-calibrator-wl18xx/ti-calibrator-wl18xx/btgod-ng @@ -262,17 +262,22 @@ while getopts a:c:f:hi:m:p:r:s:t: OPT; do done shift $(expr $OPTIND - 1) -cli set bluez.0.status=2 bluez.1.status=2 -sleep 1 -echo "configure hci interface please wait" -for i in $(seq 0 240); do - cnt=$(ls /tmp/progress | wc -l) - if [ $cnt -eq 0 ]; then - break - fi - echo -n ".." +if which cli &>/dev/null; then + # CLI is not available on OEM linux and this part of + # the code is not required. + + cli set bluez.0.status=2 bluez.1.status=2 sleep 1 -done + echo "configure hci interface please wait" + for i in $(seq 0 240); do + cnt=$(ls /tmp/progress | wc -l) + if [ $cnt -eq 0 ]; then + break + fi + echo -n ".." + sleep 1 + done +fi btgod_stop