3 # Setup networking when boot starts
4 ifconfig eth0 10.0.2.15 netmask 255.255.255.0 up
5 route add default gw 10.0.2.2 dev eth0
7 # ro.kernel.android.qemud is normally set when we
8 # want the RIL (radio interface layer) to talk to
9 # the emulated modem through qemud.
11 # However, this will be undefined in two cases:
13 # - When we want the RIL to talk directly to a guest
14 # serial device that is connected to a host serial
15 # device by the emulator.
17 # - We don't want to use the RIL but the VM-based
18 # modem emulation that runs inside the guest system
21 # The following detects the latter case and sets up the
24 qemud=`getprop ro.kernel.android.qemud`
27 radio_ril=`getprop ro.kernel.android.ril`
30 # no need for the radio interface daemon
31 # telephony is entirely emulated in Java
32 setprop ro.radio.noril yes
39 # Setup additionnal DNS servers if needed
40 num_dns=`getprop ro.kernel.ndns`
42 2) setprop net.eth0.dns2 10.0.2.4
44 3) setprop net.eth0.dns2 10.0.2.4
45 setprop net.eth0.dns3 10.0.2.5
47 4) setprop net.eth0.dns2 10.0.2.4
48 setprop net.eth0.dns3 10.0.2.5
49 setprop net.eth0.dns4 10.0.2.6
53 # disable boot animation for a faster boot sequence when needed
54 boot_anim=`getprop ro.kernel.android.bootanim`
56 0) setprop debug.sf.nobootanimation 1
60 # set up the second interface (for inter-emulator connections)
62 my_ip=`getprop net.shared_net_ip`
66 *) ifconfig eth1 "$my_ip" netmask 255.255.255.0 up