diff options
author | Diogo Ferreira <diogo@underdev.org> | 2015-12-22 11:46:05 +0000 |
---|---|---|
committer | Dan Pasanen <dan.pasanen@gmail.com> | 2017-07-26 09:53:08 -0500 |
commit | bc3736a93fdd470d25c01fc93412596bd6d9c4ab (patch) | |
tree | 1ad4c32723010b5a5266f9ab1ad4916c9addb73a | |
parent | a9603177becf2556febaca8cd6fae29f344ab286 (diff) | |
download | android_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-x | init.goldfish.sh | 2 |
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 |