Change-Id: Iede2adb3cdfb66c82e25f31e1e118c7f18910f6d
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
#!/bin/sh
PATH=/bin:/usr/bin:/sbin:/usr/sbin
+PGREP=/usr/bin/pgrep
#
# Script for stopping Broadcom UART Bluetooth stack
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