fi
if is_yes "${HCID_ENABLE}" && [ -x /usr/sbin/hcid ]; then
+ HCID_FLAGS="-f /etc/bluetooth/hcid.conf"
+
+ if is_yes "${SDPD_ENABLE}" ; then
+ HCID_FLAGS="$HCID_FLAGS -s"
+ fi
msg_starting hcid
- daemon /usr/sbin/hcid -f /etc/bluetooth/hcid.conf
- RETVAL=$?
- fi
-
- if is_yes "${SDPD_ENABLE}" && [ -x /usr/sbin/sdpd ]; then
- msg_starting sdpd
- daemon /usr/sbin/sdpd
+ daemon /usr/sbin/hcid $HCID_FLAGS
RETVAL=$?
fi
/usr/sbin/hciattach $i
done
fi
- [ $RETVAL -eq 0 ] && touch /var/lock/subsys/bluetooth
+ touch /var/lock/subsys/bluetooth
else
msg_already_running bluetooth
fi
killproc /usr/bin/hidd
fi
- if is_yes "${SDPD_ENABLE}" && [ -x /usr/sbin/sdpd ]; then
- msg_stopping sdpd
- killproc /usr/sbin/sdpd
- fi
-
if is_yes "${HCID_ENABLE}" && [ -x /usr/sbin/hcid ]; then
msg_stopping hcid
killproc /usr/sbin/hcid