diff --git a/bluez.changes b/bluez.changes index a70db99..ae1d82a 100644 --- a/bluez.changes +++ b/bluez.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Jun 25 11:53:02 UTC 2017 - msuchanek@suse.com + +- Add %post/%postun to bluez-auto-enable-devices so the settings + change takes effect (boo#1039476) + ------------------------------------------------------------------- Thu Jun 8 06:54:26 UTC 2017 - seife+obs@b1-systems.com diff --git a/bluez.spec b/bluez.spec index 621678d..045441c 100644 --- a/bluez.spec +++ b/bluez.spec @@ -122,6 +122,12 @@ Contains configuration that automatically enables all bluetooth devices that are connected to the system if no other tool is handling them (e.g. desktop specific applets like blueman or GNOME or KDE applets). +%post auto-enable-devices +{ systemctl status -n0 bluetooth.service > /dev/null && systemctl restart bluetooth.service ; } ||: + +%postun auto-enable-devices +{ systemctl status -n0 bluetooth.service > /dev/null && systemctl restart bluetooth.service ; } ||: + %prep %setup -q %patch1 -p1