X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=scripts%2Fmobile%2Fbt-stack-down.sh;h=98ff244e226019c40790d3e061d1091755772b76;hb=a1d76dfdcc75873424357dff563ee330a91c288d;hp=4a673d4f22a3248adc339d7af9bece708401813f;hpb=b59a11f7bf742a94119198746ccaf14a50986674;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-tools.git diff --git a/scripts/mobile/bt-stack-down.sh b/scripts/mobile/bt-stack-down.sh index 4a673d4..98ff244 100644 --- a/scripts/mobile/bt-stack-down.sh +++ b/scripts/mobile/bt-stack-down.sh @@ -10,54 +10,19 @@ PGREP=/usr/bin/pgrep /usr/etc/bluetooth/bt-dev-end.sh # Stop HCI logging -/usr/bin/touch /run/.hci_logger_stop +systemctl stop bluetooth-hci-logger.service # Kill BlueZ bluetooth stack -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 - -BTSYSPOPUP_PID=$($PGREP bt-syspopup) -if [ "BTSYSPOPUP_PID" != "" ]; then - kill BTSYSPOPUP_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 - -BTAG_AGENT_PID=$($PGREP bluetooth-ag-agent) -if [ "$BTAG_AGENT_PID" != "" ]; then - kill $BTAG_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-share +pkill --full bluetooth-pb-agent +pkill --full bluetooth-map-agent +pkill --full bluetooth-hfp-agent +pkill --full bluetooth-ag-agent +pkill --full bluetoothd # result exit 0