enable bluetooth service with systemd [release 5.50-3mamba;Sat Jul 20 2019]
This commit is contained in:
parent
fcd507fbca
commit
4fb5bf71e9
20
bluez.spec
20
bluez.spec
@ -1,6 +1,6 @@
|
|||||||
Name: bluez
|
Name: bluez
|
||||||
Version: 5.50
|
Version: 5.50
|
||||||
Release: 2mamba
|
Release: 3mamba
|
||||||
Summary: Userspace tools for the Bluetooth wireless library for Linux
|
Summary: Userspace tools for the Bluetooth wireless library for Linux
|
||||||
Group: Applications/Communication
|
Group: Applications/Communication
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -92,11 +92,17 @@ done
|
|||||||
%clean
|
%clean
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
|
||||||
|
%preun
|
||||||
|
%systemd_preun bluetooth
|
||||||
|
%systemd_user_preun obex
|
||||||
|
:
|
||||||
|
|
||||||
%post
|
%post
|
||||||
# new install
|
# new install
|
||||||
#
|
#
|
||||||
# disable service by default as it is started by udev now
|
# disable service by default as it is started by udev now
|
||||||
/sbin/chkconfig --del bluetooth 2>&1 &>/dev/null
|
/sbin/chkconfig --del bluetooth 2>&1 &>/dev/null
|
||||||
|
%systemd_post bluetooth
|
||||||
%systemd_user_post obex
|
%systemd_user_post obex
|
||||||
if [ $1 -gt 1 ]; then
|
if [ $1 -gt 1 ]; then
|
||||||
# Enable on upgrade
|
# Enable on upgrade
|
||||||
@ -104,8 +110,13 @@ if [ $1 -gt 1 ]; then
|
|||||||
fi
|
fi
|
||||||
:
|
:
|
||||||
|
|
||||||
%preun
|
%postun
|
||||||
%systemd_user_preun obex
|
%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
|
%post -n libbluetooth -p /sbin/ldconfig
|
||||||
@ -144,6 +155,9 @@ fi
|
|||||||
%doc ChangeLog README
|
%doc ChangeLog README
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Jul 20 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 5.50-3mamba
|
||||||
|
- enable bluetooth service with systemd
|
||||||
|
|
||||||
* Wed Feb 20 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 5.50-2mamba
|
* Wed Feb 20 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 5.50-2mamba
|
||||||
- enable systemd user obex service
|
- enable systemd user obex service
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user