Don't hardcode 64 bit path in bluetooth.service

This commit is contained in:
Andrey Bondrov 2018-06-23 21:49:29 +10:00
parent 5a363f237e
commit 073ce78999
2 changed files with 3 additions and 2 deletions

View file

@ -7,7 +7,7 @@ After=NetworkManager.service
[Service]
Type=dbus
BusName=org.bluez
ExecStart=/usr/lib64/bluetooth/bluetoothd
ExecStart=/usr/bin/bluetoothd
NotifyAccess=main
#WatchdogSec=10
#Restart=on-failure

View file

@ -5,7 +5,7 @@
Summary: Official Linux Bluetooth protocol stack
Name: bluez
Version: 5.50
Release: 2
Release: 3
License: GPLv2+
Group: Communications
Url: http://www.bluez.org/
@ -264,6 +264,7 @@ install -m644 %{SOURCE6} -D %{buildroot}%{_sysconfdir}/udev/rules.d/10-local.rul
install -m644 %{SOURCE7} -D %{buildroot}%{_sysconfdir}/udev/rules.d/97-bluetooth.rules
install -m644 %{SOURCE8} -D %{buildroot}%{_unitdir}/bluetooth.service
sed s,"/usr/bin/bluetoothd","%{_libexecdir}/bluetooth/bluetoothd",g -i %{buildroot}%{_sysconfdir}/udev/rules.d/97-bluetooth.rules
sed s,"/usr/bin/bluetoothd","%{_libexecdir}/bluetooth/bluetoothd",g -i %{buildroot}%{_unitdir}/bluetooth.service
#install more config files
install -m0644 profiles/network/network.conf %{buildroot}%{_sysconfdir}/bluetooth/