diff options
author | Diogo Ferreira <diogo@underdev.org> | 2015-12-22 11:46:05 +0000 |
---|---|---|
committer | Diogo Ferreira <diogo@underdev.org> | 2015-12-22 11:46:05 +0000 |
commit | 208361067bfcad5223a774f5251b459390a0af56 (patch) | |
tree | f323a35a6fac8c2ecee6c5a9487a78a5819130a7 | |
parent | fd93900263132685a723f5d3fee8a82e1b26c108 (diff) | |
download | android_device_generic_goldfish-stable/cm-13.0-ZNH0E.tar.gz android_device_generic_goldfish-stable/cm-13.0-ZNH0E.tar.bz2 android_device_generic_goldfish-stable/cm-13.0-ZNH0E.zip |
goldfish: Add gateway using 'ip route'HEADreplicant-6.0-0004-transitionreplicant-6.0-0004-rc6replicant-6.0-0004-rc5-transitionreplicant-6.0-0004-rc5replicant-6.0-0004-rc4replicant-6.0-0004-rc3replicant-6.0-0004-rc2replicant-6.0-0004-rc1replicant-6.0-0004replicant-6.0-0003replicant-6.0-0002replicant-6.0-0001stable/cm-13.0-ZNH5Ystable/cm-13.0-ZNH2KBstable/cm-13.0-ZNH2Kstable/cm-13.0-ZNH0Ecm-13.0
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 |