X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=scripts%2Fbt-dev-end.sh;h=54350b4cda50380707778e241fbe564895072acb;hb=c22226bf39b7d40e3abecf1e893c9afe6d982751;hp=37bafad25ec78e6babe058a82268c0a52d7bddba;hpb=d3a68103a6bd06e2a55dd069e22443bb1738e4bf;p=platform%2Fadaptation%2Fbluetooth-firmware-bcm.git diff --git a/scripts/bt-dev-end.sh b/scripts/bt-dev-end.sh index 37bafad..54350b4 100755 --- a/scripts/bt-dev-end.sh +++ b/scripts/bt-dev-end.sh @@ -1,5 +1,6 @@ #!/bin/sh PATH=/bin:/usr/bin:/sbin:/usr/sbin +PGREP=/usr/bin/pgrep # # Script for stopping Broadcom UART Bluetooth stack @@ -14,11 +15,13 @@ if [ $REVISION_NUM == "0006" ]; then rmmod bt_drv.ko rmmod st_drv.ko sleep 1 - killall uim_rfkill + UIM_RFKILL_PID=$($PGREP uim_rfkill) + kill $UIM_RFKILL_PID exit 0 fi -killall hciattach +HCIATTACH_PID=$($PGREP hciattach) +kill $HCIATTACH_PID # Turn off Bluetooth Chip /usr/sbin/rfkill block bluetooth