diff options
| author | Max Krasnyansky <maxk@qualcomm.com> | 2002-06-24 03:11:13 +0000 | 
|---|---|---|
| committer | Max Krasnyansky <maxk@qualcomm.com> | 2002-06-24 03:11:13 +0000 | 
| commit | 00b80c5e59ee6375af4a06b41f181d2d90402ad8 (patch) | |
| tree | 92388e301e0c3a4d55fa9b8501eb08ab66ab11dc | |
| parent | ccb0bf6ad34beb532176a49731537f09fe01875c (diff) | |
Start sdpd, if installed.
| -rwxr-xr-x | scripts/bluetooth.rc.rh | 16 | 
1 files changed, 13 insertions, 3 deletions
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  }  | 
