Restarting USB Bluetooth Dongles immediately

Hi @all,

i am currently having a Problem:

I want to restart 2 USB Bluetooth Dongles from the shell at the same time. It is very important that they are restarted nearly simultaneously, so that their clocks are starting to run at the same time.

At the moment i am using a command called "bccmd -d hci0 coldreset" to restart the hci0 device and afterwards i am restarting the hci1 device with the same command. The problem here is, that as it seems, there is a very short random timedifference between these restarts and thus the clocks of the Bluetooth USB Dongle are not started at the same time.

I ve already tried to use "nice" to increase the commands priority but that did not help.

So does anybody have an idea how this simultaneous restart can be achieved...i would be really thankful for any help.

Thanks in advance for your help

# bccmd -d hci0 coldreset & bccmd -d hci0 coldreset &
# wait
bccmd -d hci0 coldreset & bccmd -d hci1 coldreset &
wait

Thank you so far =)....i ll try this.