Name: bluetooth-tools
Summary: Bluetooth-tools
-Version: 0.2.35
+Version: 0.2.36
Release: 0
Group: Network & Connectivity/Bluetooth
License: Apache-2.0
%attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-edutm-off.sh
%attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-hci-logdump.sh
%attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-run-hcidump.sh
+%if "%{profile}" == "mobile"
+%attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-stack-down-with-radio.sh
+%endif
%{_datadir}/license/bluetooth-tools
%{_unitdir}/multi-user.target.wants/bluetooth-address.service
%{_unitdir}/bluetooth-address.service
IF (TIZEN_MOBILE)
INSTALL(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/mobile/bt-stack-up.sh DESTINATION etc/bluetooth)
INSTALL(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/mobile/bt-stack-down.sh DESTINATION etc/bluetooth)
+INSTALL(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/mobile/bt-stack-down-with-radio.sh DESTINATION etc/bluetooth)
INSTALL(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/mobile/bt-reset-env.sh DESTINATION etc/bluetooth)
ELSE ()
IF (TIZEN_WEARABLE)
--- /dev/null
+#!/bin/sh
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+
+#
+# Script for stopping Bluetooth stack
+#
+
+# If radio is on, should not call the device down script
+#/usr/etc/bluetooth/bt-dev-end.sh
+
+# Kill BlueZ bluetooth stack
+killall obexd obex-client
+killall bt-syspopup
+killall bluetooth-pb-agent
+killall bluetooth-map-agent
+killall bluetooth-hfp-agent
+killall bluetooth-ag-agent
+killall bluetoothd
+killall bluetooth-share
+
+# result
+exit 0