diff options
author | Dries Harnie <botje.linux@gmail.com> | 2010-01-18 17:44:33 +0100 |
---|---|---|
committer | Dries Harnie <botje.linux@gmail.com> | 2010-07-15 13:19:37 +0200 |
commit | 2a743730c7d1a8adba8a922f7af46cef0b35363a (patch) | |
tree | 7ee44c18130dbac8313dc88e32f6bc408ddf2f80 /rootdir/etc/init.goldfish.sh | |
parent | 07b3d09e841ea8544f72c3b2bf268f07df6357f7 (diff) | |
download | system_core-2a743730c7d1a8adba8a922f7af46cef0b35363a.zip system_core-2a743730c7d1a8adba8a922f7af46cef0b35363a.tar.gz system_core-2a743730c7d1a8adba8a922f7af46cef0b35363a.tar.bz2 |
Userland support for VM interconnection
Change-Id: I699608f3072b39c8da1a7cc313bd0b736e90f225
Diffstat (limited to 'rootdir/etc/init.goldfish.sh')
-rwxr-xr-x | rootdir/etc/init.goldfish.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/rootdir/etc/init.goldfish.sh b/rootdir/etc/init.goldfish.sh index 5ff0a3a..cfa2c82 100755 --- a/rootdir/etc/init.goldfish.sh +++ b/rootdir/etc/init.goldfish.sh @@ -45,3 +45,13 @@ esac # this line doesn't really do anything useful. however without it the # previous setprop doesn't seem to apply for some really odd reason setprop ro.qemu.init.completed 1 + +# set up the second interface (for inter-emulator connections) +# if required +my_ip=`getprop net.shared_net_ip` +case "$my_ip" in + "") + ;; + *) ifconfig eth1 "$my_ip" netmask 255.255.255.0 up + ;; +esac |