Loading rootdir/etc/init.goldfish.rc +1 −0 Original line number Diff line number Diff line Loading @@ -6,6 +6,7 @@ on early-init on boot setprop ARGH ARGH setprop net.eth0.gw 10.0.2.2 setprop net.eth0.dns1 10.0.2.3 setprop net.gprs.local-ip 10.0.2.15 setprop ro.radio.use-ppp no Loading rootdir/etc/init.goldfish.sh +25 −10 Original line number Diff line number Diff line #!/system/bin/sh # 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 # ro.kernel.android.qemud is normally set when we # want the RIL (radio interface layer) to talk to # the emulated modem through qemud. # # However, this will be undefined in two cases: # # - When we want the RIL to talk directly to a guest # serial device that is connected to a host serial # device by the emulator. # # - We don't want to use the RIL but the VM-based # modem emulation that runs inside the guest system # instead. # # The following detects the latter case and sets up the # system for it. # qemud=`getprop ro.kernel.android.qemud` case "$qemud" in "") Loading @@ -18,6 +36,7 @@ case "$qemud" in ;; esac # Setup additionnal DNS servers if needed num_dns=`getprop ro.kernel.ndns` case "$num_dns" in 2) setprop net.eth0.dns2 10.0.2.4 Loading @@ -42,10 +61,6 @@ esac # /system/bin/qemu-props # 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` Loading Loading
rootdir/etc/init.goldfish.rc +1 −0 Original line number Diff line number Diff line Loading @@ -6,6 +6,7 @@ on early-init on boot setprop ARGH ARGH setprop net.eth0.gw 10.0.2.2 setprop net.eth0.dns1 10.0.2.3 setprop net.gprs.local-ip 10.0.2.15 setprop ro.radio.use-ppp no Loading
rootdir/etc/init.goldfish.sh +25 −10 Original line number Diff line number Diff line #!/system/bin/sh # 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 # ro.kernel.android.qemud is normally set when we # want the RIL (radio interface layer) to talk to # the emulated modem through qemud. # # However, this will be undefined in two cases: # # - When we want the RIL to talk directly to a guest # serial device that is connected to a host serial # device by the emulator. # # - We don't want to use the RIL but the VM-based # modem emulation that runs inside the guest system # instead. # # The following detects the latter case and sets up the # system for it. # qemud=`getprop ro.kernel.android.qemud` case "$qemud" in "") Loading @@ -18,6 +36,7 @@ case "$qemud" in ;; esac # Setup additionnal DNS servers if needed num_dns=`getprop ro.kernel.ndns` case "$num_dns" in 2) setprop net.eth0.dns2 10.0.2.4 Loading @@ -42,10 +61,6 @@ esac # /system/bin/qemu-props # 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` Loading