summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiroslav Tisma <miroslav.tisma@imgtec.com>2015-06-04 15:23:19 +0200
committerbohu <bohu@google.com>2015-09-14 16:55:21 -0700
commit3ea472d45910dc4758dde13fde86e0ef87804f0f (patch)
tree18e505d0a7eadf400a894a83e4c86b051cc2e6c1
parentb82a006cf7db1d3790272279eeaa066827d5bf81 (diff)
downloadandroid_device_generic_goldfish-3ea472d45910dc4758dde13fde86e0ef87804f0f.tar.gz
android_device_generic_goldfish-3ea472d45910dc4758dde13fde86e0ef87804f0f.tar.bz2
android_device_generic_goldfish-3ea472d45910dc4758dde13fde86e0ef87804f0f.zip
init.ranchu.rc: Add dhcpcd_eth0 service
This commit adds dhcpcd service for eth interface which enables netwoking in the ranchu emulators. Since rild support is not implemented yet in ranchu version, this is a working solution for enabling the internet support. bug: 24070972 (cherry-picked from aosp: 0668c61a8bc91f223c01ba8c9db11daff31b0fc0) Change-Id: Icdc2ef8c7beec228d3ef54baa1da9319588ebb36
-rw-r--r--init.ranchu.rc6
1 files changed, 6 insertions, 0 deletions
diff --git a/init.ranchu.rc b/init.ranchu.rc
index 1e9f125..9d2008d 100644
--- a/init.ranchu.rc
+++ b/init.ranchu.rc
@@ -41,6 +41,12 @@ on boot
stop dund
stop akmd
+# enable dhcpcd on eth0 interface
+service dhcpcd_eth0 /system/bin/dhcpcd -ABDKL
+ class main
+ disabled
+ oneshot
+
# enable Google-specific location features,
# like NetworkLocationProvider and LocationCollector
setprop ro.com.google.locationfeatures 1