From 4fb5bf71e9599e46e5d2c2548ceb3edb101d5b0c Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 20:51:19 +0100 Subject: [PATCH] enable bluetooth service with systemd [release 5.50-3mamba;Sat Jul 20 2019] --- bluez.spec | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/bluez.spec b/bluez.spec index 5928493..696b5a0 100644 --- a/bluez.spec +++ b/bluez.spec @@ -1,6 +1,6 @@ Name: bluez Version: 5.50 -Release: 2mamba +Release: 3mamba Summary: Userspace tools for the Bluetooth wireless library for Linux Group: Applications/Communication Vendor: openmamba @@ -92,11 +92,17 @@ done %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%preun +%systemd_preun bluetooth +%systemd_user_preun obex +: + %post # new install # # disable service by default as it is started by udev now /sbin/chkconfig --del bluetooth 2>&1 &>/dev/null +%systemd_post bluetooth %systemd_user_post obex if [ $1 -gt 1 ]; then # Enable on upgrade @@ -104,8 +110,13 @@ if [ $1 -gt 1 ]; then fi : -%preun -%systemd_user_preun obex +%postun +%systemd_postun bluetooth +: + +%posttrans +# clean broken old sysv links +find /etc/rc[0-6].d/ -type l -xtype l -exec rm -f {} \; : %post -n libbluetooth -p /sbin/ldconfig @@ -144,6 +155,9 @@ fi %doc ChangeLog README %changelog +* Sat Jul 20 2019 Silvan Calarco 5.50-3mamba +- enable bluetooth service with systemd + * Wed Feb 20 2019 Silvan Calarco 5.50-2mamba - enable systemd user obex service