From b81a780db729ac23062ad3c2ab8a52354f39b3e4 Mon Sep 17 00:00:00 2001 From: Hyuk Lee Date: Fri, 4 Mar 2016 16:50:30 +0900 Subject: [PATCH] Modify the bluetoothd to On-demand mode Change-Id: Iff36426e76d9a83a1c40cc15ecec221f9fc29ada Signed-off-by: Hyuk Lee --- packaging/bluez.spec | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/packaging/bluez.spec b/packaging/bluez.spec index 6f6941e..271137b 100644 --- a/packaging/bluez.spec +++ b/packaging/bluez.spec @@ -176,8 +176,7 @@ install -D -m 0755 attrib/gatttool $RPM_BUILD_ROOT/%{_bindir}/ install -D -m 0755 tools/obexctl %{buildroot}%{_bindir}/obexctl #test -%if "%{?_with_emulator}" == "1" -%else +%if "%{?profile}" == "tv" ln -sf bluetooth.service %{buildroot}%{_libpath}/systemd/system/dbus-org.bluez.service %endif @@ -213,13 +212,13 @@ ln -sf bluetooth.service %{buildroot}%{_libpath}/systemd/system/dbus-org.bluez.s /usr/lib/udev/* #test -2 -%if "%{?_with_emulator}" == "1" -%exclude /%{_libpath}/systemd/system/bluetooth.service -%exclude /%{_datadir}/dbus-1/system-services/org.bluez.service -%else +%if "%{?profile}" == "tv" %{_libpath}/systemd/system/bluetooth.service %{_libpath}/systemd/system/dbus-org.bluez.service %{_datadir}/dbus-1/system-services/org.bluez.service +%else +%exclude /%{_libpath}/systemd/system/bluetooth.service +%exclude /%{_datadir}/dbus-1/system-services/org.bluez.service %endif %config %{_sysconfdir}/dbus-1/system.d/bluetooth.conf %dir /var/lib/bluetooth -- 2.7.4