summaryrefslogtreecommitdiffstats
path: root/scripts/bluetooth.rc.rh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/bluetooth.rc.rh')
-rwxr-xr-xscripts/bluetooth.rc.rh8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/bluetooth.rc.rh b/scripts/bluetooth.rc.rh
index 95ae4222..c8560946 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