Skip to content

Commit

Permalink
[usb-moded] Add dhcp server support to developer mode
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
  • Loading branch information
philippedeswert committed Dec 12, 2013
1 parent d25ed3d commit 2d30b7c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/dyn-modes/developer_mode-android.ini
Expand Up @@ -12,3 +12,4 @@ softconnect_path = /sys/class/android_usb/android0/enable
softconnect = 1
softconnec_disconnect = 0
idProduct = 0A02
dhcp = 1
3 changes: 3 additions & 0 deletions config/dyn-modes/developer_mode.ini
Expand Up @@ -3,3 +3,6 @@ name = developer_mode
module = g_ether
network = 1
network_interface = usb0

[options]
dhcp = 1
5 changes: 5 additions & 0 deletions config/run/udhcpd-developer-mode.ini
@@ -0,0 +1,5 @@
[info]
name = udhcpd.service
mode = developer_mode
systemd = 1
post = 1
1 change: 1 addition & 0 deletions rpm/usb-moded.spec
Expand Up @@ -295,6 +295,7 @@ systemctl daemon-reload
%files developer-mode-android
%defattr(-,root,root,-)
%{_sysconfdir}/usb-moded/dyn-modes/developer_mode-android.ini
%{_sysconfdir}/config/run/udhcpd-developer-mode.ini

%files adb-mode
%defattr(-,root,root,-)
Expand Down

0 comments on commit 2d30b7c

Please sign in to comment.