Change-Id: I8d501e50ee978fc1e2d92818d233165df19e454e
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
# Kill BlueZ bluetooth stack
# Kill BlueZ bluetooth stack
-if ($PGREP bluetooth); then
- BLUETOOTH_PID=$($PGREP bluetooth)
+BLUETOOTH_PID=$($PGREP bluetooth)
+if [ "$BLUETOOTH_PID" != "" ]; then
-if ($PGREP obexd); then
- OBEXD_PID=$($PGREP obexd)
+OBEXD_PID=$($PGREP obexd)
+if [ "$OBEXD_PID" != "" ]; then
-if ($PGREP obexd-client); then
- OBEXDCLIENT_PID=$($PGREP obexd-client)
+OBEXDCLIENT_PID=$($PGREP obexd-client)
+if [ "$OBEXDCLIENT_PID" != "" ]; then
-if ($PGREP bluetooth-share); then
- BTSHARE_PID=$($PGREP bluetooth-share)
+BTSHARE_PID=$($PGREP bluetooth-share)
+if [ "$BTSHARE_PID" != "" ]; then
-if ($PGREP bluetooth-pb-agent); then
- BTPB_AGENT_PID=$($PGREP bluetooth-pb-agent)
+BTPB_AGENT_PID=$($PGREP bluetooth-pb-agent)
+if [ "$BTPB_AGENT_PID" != "" ]; then
-if ($PGREP bluetooth-map-agent); then
- BTMAP_AGENT_PID=$($PGREP bluetooth-map-agent)
+BTMAP_AGENT_PID=$($PGREP bluetooth-map-agent)
+if [ "$BTMAP_AGENT_PID" != "" ]; then
-if ($PGREP bluetooth-hfp-agent); then
- BTHFP_AGENT_PID=$($PGREP bluetooth-hfp-agent)
+BTHFP_AGENT_PID=$($PGREP bluetooth-hfp-agent)
+if [ "$BTHFP_AGENT_PID" != "" ]; then
-if ($PGREP bluetoothd); then
- BLUETOOTHD_PID=$($PGREP bluetoothd)
+BLUETOOTHD_PID=$($PGREP bluetoothd)
+if [ "$BLUETOOTHD_PID" != "" ]; then