summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Krasnyansky <maxk@qualcomm.com>2002-06-24 03:11:13 +0000
committerMax Krasnyansky <maxk@qualcomm.com>2002-06-24 03:11:13 +0000
commit00b80c5e59ee6375af4a06b41f181d2d90402ad8 (patch)
tree92388e301e0c3a4d55fa9b8501eb08ab66ab11dc
parentccb0bf6ad34beb532176a49731537f09fe01875c (diff)
downloadbluez-00b80c5e59ee6375af4a06b41f181d2d90402ad8.tar.gz
Start sdpd, if installed.
-rwxr-xr-xscripts/bluetooth.rc.rh16
1 files changed, 13 insertions, 3 deletions
diff --git a/scripts/bluetooth.rc.rh b/scripts/bluetooth.rc.rh
index f05867886..95ae42222 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
}