summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiogo Ferreira <diogo@underdev.org>2015-12-22 11:46:05 +0000
committerDiogo Ferreira <diogo@underdev.org>2015-12-22 11:46:05 +0000
commit208361067bfcad5223a774f5251b459390a0af56 (patch)
treef323a35a6fac8c2ecee6c5a9487a78a5819130a7
parentfd93900263132685a723f5d3fee8a82e1b26c108 (diff)
downloadandroid_device_generic_goldfish-stable/cm-13.0-ZNH2KB.tar.gz
android_device_generic_goldfish-stable/cm-13.0-ZNH2KB.tar.bz2
android_device_generic_goldfish-stable/cm-13.0-ZNH2KB.zip
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