Page MenuHomeFreeBSD

D44861.id161210.diff
No OneTemporary

D44861.id161210.diff

diff --git a/libexec/rc/rc.d/bluetooth b/libexec/rc/rc.d/bluetooth
--- a/libexec/rc/rc.d/bluetooth
+++ b/libexec/rc/rc.d/bluetooth
@@ -127,8 +127,17 @@
> /dev/null 2>&1 || return 1
# Initilalize HCI node
- ${hccontrol} -n ${dev}hci reset \
- > /dev/null 2>&1 || return 1
+ for loop in 1 2 3
+ do
+ ${hccontrol} -n ${dev}hci reset \
+ > /dev/null 2>1 && break
+ if [ ${loop} -eq 3 ]
+ then
+ warn Reset failed three times, giving up.
+ return 1
+ fi
+ warn Reset failed, retrying.
+ done
${hccontrol} -n ${dev}hci read_bd_addr \
> /dev/null 2>&1 || return 1

File Metadata

Mime Type
text/plain
Expires
Wed, Apr 8, 2:48 PM (20 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31039051
Default Alt Text
D44861.id161210.diff (584 B)

Event Timeline