From d5fa0e96285914e4621ac6fe902f4e56e8693f74 Mon Sep 17 00:00:00 2001 From: dh79pyun Date: Thu, 11 Nov 2021 08:04:00 +0900 Subject: [PATCH] Modify the dbus policy for robot profile Change-Id: I16389887221197cd24b1e84445090077d4e4cee6 Signed-off-by: dh79pyun --- packaging/bluez.spec | 8 ++++++- src/bluetooth_robot.conf | 59 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+), 1 deletion(-) create mode 100755 src/bluetooth_robot.conf diff --git a/packaging/bluez.spec b/packaging/bluez.spec index 69e589f..e2cc767 100755 --- a/packaging/bluez.spec +++ b/packaging/bluez.spec @@ -384,6 +384,7 @@ install -D -m 0644 src/main_robot.conf %{buildroot}%{_sysconfdir}/bluetooth/main #install -D -m 0644 src/org.bluez.service %{buildroot}%{_datadir}/dbus-1/system-services/org.bluez.service install -D -m 0644 src/bluetooth.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/bluetooth.conf +install -D -m 0644 src/bluetooth_robot.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/bluetooth_robot.conf #install -D -m 0644 profiles/audio/audio.conf %{buildroot}%{_sysconfdir}/bluetooth/audio.conf #install -D -m 0644 profiles/network/network.conf %{buildroot}%{_sysconfdir}/bluetooth/network.conf @@ -432,7 +433,6 @@ popd #%{_sysconfdir}/bluetooth/audio.conf #%{_sysconfdir}/bluetooth/network.conf #%{_sysconfdir}/bluetooth/rfcomm.conf -%{_sysconfdir}/dbus-1/system.d/bluetooth.conf #%{_datadir}/man/*/* %attr(750, network_fw, network_fw)%{_bindir}/hcitool %{_bindir}/l2ping @@ -527,15 +527,18 @@ rm %{_sysconfdir}/bluetooth/main.conf %files profile_wearable %manifest %{name}.manifest %{_sysconfdir}/bluetooth/main.conf.wearable +%{_sysconfdir}/dbus-1/system.d/bluetooth.conf %files profile_tv %manifest %{name}.manifest %{_sysconfdir}/bluetooth/main.conf %exclude %{_datadir}/dbus-1/system-services/org.bluez.service +%{_sysconfdir}/dbus-1/system.d/bluetooth.conf %files profile_common %manifest %{name}.manifest %{_sysconfdir}/bluetooth/main.conf +%{_sysconfdir}/dbus-1/system.d/bluetooth.conf %post plugin-headless ln -sf main.conf.headless %{_sysconfdir}/bluetooth/main.conf @@ -555,10 +558,13 @@ rm %{_sysconfdir}/bluetooth/main.conf %post plugin-robot ln -sf main.conf.robot %{_sysconfdir}/bluetooth/main.conf +mv %{_sysconfdir}/dbus-1/system.d/bluetooth_robot.conf %{_sysconfdir}/dbus-1/system.d/bluetooth.conf %preun plugin-robot rm %{_sysconfdir}/bluetooth/main.conf %files plugin-robot %manifest %{name}.manifest %{_sysconfdir}/bluetooth/main.conf.robot +%{_sysconfdir}/dbus-1/system.d/bluetooth_robot.conf + %changelog diff --git a/src/bluetooth_robot.conf b/src/bluetooth_robot.conf new file mode 100755 index 0000000..7e8cf21 --- /dev/null +++ b/src/bluetooth_robot.conf @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- 2.7.4