#!/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 "Stopping the Bluetooth Adapter" /usr/share/silex-uart/silex-uart.sh stop echo "Removing the Bluetooth Adapter settings" rm -frd $BT_FOLDER* BT_FILES=$(ls $BT_FOLDER) if [ -z "$btfolder" ]; then echo "[ OK ] The Bluetooth Adapter settings removed" else echo "[ ERRO ] The Bluetooth Adapter settings cannot be removed" exit 1 fi exit 0