From 70fde9effee66bafac0e218d1253e8d3cf730d25 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 17 Jan 2022 07:49:56 +0100 Subject: bluez-btreset: Add setting local name --- scripts/bluez-btreset.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts') diff --git a/scripts/bluez-btreset.sh b/scripts/bluez-btreset.sh index aa85cfe2..e2b4e40a 100755 --- a/scripts/bluez-btreset.sh +++ b/scripts/bluez-btreset.sh @@ -3,6 +3,10 @@ reset_dev() { dev=$1 echo "Reset ${dev}" + sudo hciconfig ${dev} up + sudo hciconfig ${dev} name + sudo hciconfig ${dev} name name_${dev} + sudo hciconfig ${dev} name sudo hciconfig ${dev} reset sudo hciconfig ${dev} down } -- cgit v1.2.3