From 9a22c9ccce969faa7807c299532ff077b6a77381 Mon Sep 17 00:00:00 2001 From: Philippe De Swert Date: Sun, 24 Jan 2016 16:00:06 +0200 Subject: [PATCH] adb: package the adb mode requirements correctly Signed-off-by: Philippe De Swert --- rpm/usb-moded.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rpm/usb-moded.spec b/rpm/usb-moded.spec index 205e473..6e4fb5e 100644 --- a/rpm/usb-moded.spec +++ b/rpm/usb-moded.spec @@ -359,7 +359,9 @@ install -m 755 -D systemd/turn-usb-rescue-mode-off %{buildroot}/%{_bindir}/turn- install -m 644 -D systemd/usb-rescue-mode-off.service %{buildroot}/lib/systemd/system/usb-rescue-mode-off.service install -m 644 -D systemd/usb-rescue-mode-off.service %{buildroot}/lib/systemd/system/graphical.target.wants/usb-rescue-mode-off.service install -m 644 -D systemd/usb-moded.conf %{buildroot}/%{_sysconfdir}/tmpfiles.d/usb-moded.conf - +install -m 644 -D systemd/adbd-prepare.service %{buildroot}/lib/systemd/system/adbd-prepare.service +install -m 644 -D systemd/adbd-prepare.service %{buildroot}/lib/systemd/system/graphical.target.wants/adbd-prepare.service +install -m 744 -D systemd/adbd-functionfs.sh %{buildroot}/usr/sbin/adbd-functionfs.sh %preun systemctl daemon-reload || : @@ -435,6 +437,9 @@ systemctl daemon-reload || : %{_sysconfdir}/usb-moded/run/adb-startserver.ini %{_sysconfdir}/usb-moded/run/adb-prepare.ini %{_sysconfdir}/usb-moded/run/udhcpd-adb-mode.ini +/lib/systemd/system/adbd-prepare.service +/lib/systemd/system/graphical.target.wants/adbd-prepare.service +/usr/sbin/adbd-functionfs.sh %files mtp-mode-android %defattr(-,root,root,-)