From 56e66135d3f4c7fff53c3e45e13c2222e13c2cea Mon Sep 17 00:00:00 2001 From: Philippe De Swert Date: Fri, 3 Jul 2015 00:59:56 +0300 Subject: [PATCH] [adb] Add dhcp server start for ADB mode. Contributes: JB#30264 Also start the dhcp server so we have network connectivity too, in case this would be needed in combination with the adb mode. Signed-off-by: Philippe De Swert --- config/run/udhcpd-adb-mode.ini | 5 +++++ rpm/usb-moded.spec | 1 + 2 files changed, 6 insertions(+) create mode 100644 config/run/udhcpd-adb-mode.ini diff --git a/config/run/udhcpd-adb-mode.ini b/config/run/udhcpd-adb-mode.ini new file mode 100644 index 0000000..dd05d0a --- /dev/null +++ b/config/run/udhcpd-adb-mode.ini @@ -0,0 +1,5 @@ +[info] +name = udhcpd.service +mode = adb_mode +systemd = 1 +post = 1 diff --git a/rpm/usb-moded.spec b/rpm/usb-moded.spec index a6a7917..4a647a5 100644 --- a/rpm/usb-moded.spec +++ b/rpm/usb-moded.spec @@ -401,6 +401,7 @@ systemctl daemon-reload || : %{_sysconfdir}/usb-moded/dyn-modes/adb_mode.ini %{_sysconfdir}/usb-moded/run/adb-startserver.ini %{_sysconfdir}/usb-moded/run/adb-prepare.ini +%{_sysconfdir}/usb-moded/run/udhcpd-adb-mode.ini %files mtp-mode-android %defattr(-,root,root,-)