Hello community, here is the log from the commit of package rfkill for openSUSE:Factory checked in at 2015-08-05 06:49:55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rfkill (Old) and /work/SRC/openSUSE:Factory/.rfkill.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "rfkill" Changes: -------- --- /work/SRC/openSUSE:Factory/rfkill/rfkill.changes 2015-01-15 15:59:24.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.rfkill.new/rfkill.changes 2015-08-05 06:49:56.000000000 +0200 @@ -1,0 +2,8 @@ +Mon Jul 13 15:23:18 UTC 2015 - jkeil@suse.de + +- Add rfkill-{un,}block@.service unit files + Example: + Use `systemctl {start,stop} block@bluetooth` to block or unblock + (disable or enable) the bluetooth device + +------------------------------------------------------------------- New: ---- rfkill-block@.service rfkill-unblock@.service ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rfkill.spec ++++++ --- /var/tmp/diff_new_pack.qTrmw5/_old 2015-08-05 06:49:57.000000000 +0200 +++ /var/tmp/diff_new_pack.qTrmw5/_new 2015-08-05 06:49:57.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package rfkill # -# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,6 +24,8 @@ Group: Productivity/Networking/Other Url: http://wireless.kernel.org/en/users/Documentation/rfkill Source0: https://www.kernel.org/pub/software/network/%{name}/%{name}-%{version}.tar.bz2 +Source1: rfkill-block@.service +Source2: rfkill-unblock@.service BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -40,11 +42,26 @@ %install install -Dm755 rfkill %{buildroot}%{_sbindir}/rfkill install -Dm644 rfkill.8 %{buildroot}%{_mandir}/man8/rfkill.8 +install -Dm644 %{S:1} %{buildroot}%{_unitdir}/rfkill-block@.service +install -Dm644 %{S:2} %{buildroot}%{_unitdir}/rfkill-unblock@.service + +%pre +%service_add_pre rfkill-block@.service rfkill-unblock@.service + +%post +%service_add_post rfkill-block@.service rfkill-unblock@.service + +%preun +%service_del_preun rfkill-block@.service rfkill-unblock@.service + +%postun +%service_del_postun rfkill-block@.service rfkill-unblock@.service %files %defattr(-,root,root) %doc COPYING README %{_sbindir}/rfkill %{_mandir}/man8/rfkill.8* +%{_unitdir}/* %changelog ++++++ rfkill-block@.service ++++++ [Unit] Description=RFKill-Block %I After=rfkill-unblock@all.service [Service] Type=oneshot ExecStart=/usr/sbin/rfkill block %I [Install] WantedBy=multi-user.target ++++++ rfkill-unblock@.service ++++++ [Unit] Description=RFKill-Unblock %I After=rfkill-block@all.service [Service] Type=oneshot ExecStart=/usr/sbin/rfkill unblock %I [Install] WantedBy=multi-user.target