summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiogo Ferreira <diogo@underdev.org>2015-12-22 11:46:05 +0000
committerDan Pasanen <dan.pasanen@gmail.com>2017-07-26 09:53:08 -0500
commitbc3736a93fdd470d25c01fc93412596bd6d9c4ab (patch)
tree1ad4c32723010b5a5266f9ab1ad4916c9addb73a
parenta9603177becf2556febaca8cd6fae29f344ab286 (diff)
downloadandroid_device_generic_goldfish-cm-14.1.tar.gz
android_device_generic_goldfish-cm-14.1.tar.bz2
android_device_generic_goldfish-cm-14.1.zip
goldfish: Add gateway using 'ip route'cm-14.1
Rather than using toybox, switch to 'ip route', the toybox widget is still pending and is not handling this command correctly, and the emulator can't route packets. Change-Id: Ifceeb1a2da37405147079377e376b79623436853
-rwxr-xr-xinit.goldfish.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.goldfish.sh b/init.goldfish.sh
index ece75b4..a2e6d46 100755
--- a/init.goldfish.sh
+++ b/init.goldfish.sh
@@ -2,7 +2,7 @@
# Setup networking when boot starts
ifconfig eth0 10.0.2.15 netmask 255.255.255.0 up
-route add default gw 10.0.2.2 dev eth0
+ip route add default via 10.0.2.2 dev eth0 metric 0
# ro.kernel.android.qemud is normally set when we
# want the RIL (radio interface layer) to talk to