# << gbp-patch-tags # auto-added by gbp
Requires: udev
Requires: corewatcher
+Requires: systemd
+Requires(post): systemd
+Requires(preun): systemd
+Requires(postun): systemd
ExclusiveArch: %ix86 x86_64
install -m 0755 scripts/bt-dev-start.sh %{buildroot}%{_prefix}/etc/bluetooth/
install -m 0755 scripts/bt-set-addr.sh %{buildroot}%{_prefix}/etc/bluetooth/
+%post
+systemctl daemon-reload
+systemctl restart firstboot.service
+
+%preun
+systemctl stop firstboot.service
+
+%postun
+systemctl daemon-reload
+
%files
%manifest system-plugin-ia-generic.manifest
/etc/fstab
/etc/rc.d/rc.sysinit
/etc/rc.d/rc.*
/usr/bin/wlan.sh
+/usr/lib/systemd/system/firstboot.service
+/usr/lib/systemd/system/sysinit.target.wants/firstboot.service
%attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-end.sh
%attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-start.sh
%attr(755,-,-) %{_prefix}/etc/bluetooth/bt-set-addr.sh
--- /dev/null
+[Unit]
+Description=firstboot configuration service
+After=udev.service
+ConditionPathExists=!/opt/etc/.firstboot
+
+[Service]
+Type=oneshot
+ExecStart=/etc/rc.d/rc.firstboot
+
+[Install]
+WantedBy=sysinit.target