From 00b80c5e59ee6375af4a06b41f181d2d90402ad8 Mon Sep 17 00:00:00 2001 From: Max Krasnyansky Date: Mon, 24 Jun 2002 03:11:13 +0000 Subject: Start sdpd, if installed. --- scripts/bluetooth.rc.rh | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/bluetooth.rc.rh b/scripts/bluetooth.rc.rh index f0586788..95ae4222 100755 --- a/scripts/bluetooth.rc.rh +++ b/scripts/bluetooth.rc.rh @@ -16,7 +16,7 @@ prog="Bluetooth" UART_CONF="/etc/bluetooth/uart" -start_uarts() +start_uarts() { [ -f /sbin/hciattach -a -f $UART_CONF ] || return grep -v '^#' $UART_CONF | while read i; do @@ -33,16 +33,26 @@ start() { echo -n $"Starting $prog: " daemon /sbin/hcid + + if [ -x /usr/sbin/sdpd ]; then + daemon /usr/sbin/sdpd + fi + start_uarts - touch /var/lock/subsys/bluetooth + touch /var/lock/subsys/bluetooth echo } stop() { echo -n $"Shutting down $prog: " - stop_uarts killproc hcid + + if [ -x /usr/sbin/sdpd ]; then + killproc sdpd + fi + + stop_uarts rm -f /var/lock/subsys/bluetooth echo } -- cgit