#!/bin/sh ########################################################################### # # Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved. # # THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN # WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. # # @file bluetooth_reset.sh # # @author (last) Behrouz NematiPour # @date (last) 30-Aug-2021 # @author (original) Behrouz NematiPour # @date (original) 30-Aug-2021 # ############################################################################ BT_FOLDER=/var/lib/bluetooth/ echo "Starting the Bluetooth Adapter" /usr/share/silex-uart/silex-uart.sh start hciconfig hci0 up if [ $? -eq 0 ]; then echo "[ OK ] The Bluetooth Adapter is up and running on hci0" else echo "[ ERRO ] The Bluetooth Adapter cannot be running" exit 2 fi exit 0