summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2003-04-15 19:37:48 +0000
committerMarcel Holtmann <marcel@holtmann.org>2003-04-15 19:37:48 +0000
commita5a51aaf5fd8de7903e3f14d65452c30eb2f837f (patch)
tree1cfc4ed3e54f5723f9585c6047d092ce044915d9 /scripts
parent9d6d2bae4f2598f97863568b327e4b57ae8db0bd (diff)
downloadbluez-a5a51aaf5fd8de7903e3f14d65452c30eb2f837f.tar.gz
Update of the init scripts
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/bluetooth.rc.deb2
-rwxr-xr-xscripts/bluetooth.rc.rh8
2 files changed, 9 insertions, 1 deletions
diff --git a/scripts/bluetooth.rc.deb b/scripts/bluetooth.rc.deb
index 2480d385a..01ae1b56c 100755
--- a/scripts/bluetooth.rc.deb
+++ b/scripts/bluetooth.rc.deb
@@ -51,7 +51,7 @@ case "$1" in
echo -n "Stopping $DESC:"
if [ -x $RFCOMM ] ; then
echo -n " rfcomm"
- $RFCOMM unbind all
+ $RFCOMM release all
fi
echo -n " sdpd"
killall $SDPD > /dev/null 2>&1 || true
diff --git a/scripts/bluetooth.rc.rh b/scripts/bluetooth.rc.rh
index 95ae42222..c85609464 100755
--- a/scripts/bluetooth.rc.rh
+++ b/scripts/bluetooth.rc.rh
@@ -38,6 +38,10 @@ start()
daemon /usr/sbin/sdpd
fi
+ if [ -x /bin/rfcomm -a -f /etc/bluetooth/rfcomm.conf ]; then
+ /bin/rfcomm -f /etc/bluetooth/rfcomm.conf bind all
+ fi
+
start_uarts
touch /var/lock/subsys/bluetooth
echo
@@ -52,6 +56,10 @@ stop()
killproc sdpd
fi
+ if [ -x /bin/rfcomm ]; then
+ /bin/rfcomm release all
+ fi
+
stop_uarts
rm -f /var/lock/subsys/bluetooth
echo