X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=scripts%2Fetc%2Fbt-stack-down.sh;h=e476281248975af3a01707916a6d791583caf8f7;hb=5d0cb236cf6a5d27d2f65fdedd310bc06e09a3c1;hp=a7b6071e98e494fc0252bd6ed1b5a671de6a8e43;hpb=707290b1231dfc32066c93467e2f6f0fa369e49c;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-tools.git diff --git a/scripts/etc/bt-stack-down.sh b/scripts/etc/bt-stack-down.sh index a7b6071..e476281 100644 --- a/scripts/etc/bt-stack-down.sh +++ b/scripts/etc/bt-stack-down.sh @@ -11,46 +11,13 @@ PGREP=/usr/bin/pgrep # Kill BlueZ bluetooth stack -BLUETOOTH_PID=$($PGREP bluetooth) -if [ "$BLUETOOTH_PID" != "" ]; then - kill $BLUETOOTH_PID -fi - -OBEXD_PID=$($PGREP obexd) -if [ "$OBEXD_PID" != "" ]; then - kill $OBEXD_PID -fi - -OBEXDCLIENT_PID=$($PGREP obexd-client) -if [ "$OBEXDCLIENT_PID" != "" ]; then - kill $OBEXDCLIENT_PID -fi - -BTSHARE_PID=$($PGREP bluetooth-share) -if [ "$BTSHARE_PID" != "" ]; then - kill $BTSHARE_PID -fi - -BTPB_AGENT_PID=$($PGREP bluetooth-pb-agent) -if [ "$BTPB_AGENT_PID" != "" ]; then - kill $BTPB_AGENT_PID -fi - -BTMAP_AGENT_PID=$($PGREP bluetooth-map-agent) -if [ "$BTMAP_AGENT_PID" != "" ]; then - kill $BTMAP_AGENT_PID -fi - -BTHFP_AGENT_PID=$($PGREP bluetooth-hfp-agent) -if [ "$BTHFP_AGENT_PID" != "" ]; then - kill $BTHFP_AGENT_PID -fi - -BLUETOOTHD_PID=$($PGREP bluetoothd) -if [ "$BLUETOOTHD_PID" != "" ]; then - kill $BLUETOOTHD_PID -fi - +pkill --full obexd +pkill --full obexd-client +pkill --full bt-syspopup +pkill --full bluetooth-pb-agent +pkill --full bluetooth-map-agent +pkill --full bluetooth-hfp-agent +pkill --full bluetoothd # result exit 0