blob: f1b801d91850f36d1af10544c042cc387400d3b5 [file] [log] [blame]
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -08001#!/system/bin/sh
2
3ifconfig eth0 10.0.2.15 netmask 255.255.255.0 up
4route add default gw 10.0.2.2 dev eth0
5
6qemud=`getprop.ro.kernel.android.qemud`
7if test -z "$qemud"; then
8 radio_ril=`getprop ro.kernel.android.ril`
9 if test -z "$radio_ril"; then
10 # no need for the radio interface daemon
11 # telephony is entirely emulated in Java
12 setprop ro.radio.noril yes
13 stop ril-daemon
14 fi
15fi
16
17num_dns=`getprop ro.kernel.android.ndns`
18case "$num_dns" in
19 2) setprop net.eth0.dns2 10.0.2.4
20 ;;
21 3) setprop net.eth0.dns2 10.0.2.4
22 setprop net.eth0.dns3 10.0.2.5
23 ;;
24 4) setprop net.eth0.dns2 10.0.2.4
25 setprop net.eth0.dns3 10.0.2.5
26 setprop net.eth0.dns4 10.0.2.6
27 ;;
28esac
29
30# disable boot animation for a faster boot sequence when needed
31boot_anim=`getprop ro.kernel.android.bootanim`
32case "$boot_anim" in
33 0) setprop debug.sf.nobootanimation 1
34 ;;
35esac
36
David 'Digit' Turner653164b2009-05-26 13:16:59 +020037# call 'qemu-props' to set system properties from the emulator.
38#
39/system/bin/qemu-props
40
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080041# this line doesn't really do anything useful. however without it the
42# previous setprop doesn't seem to apply for some really odd reason
43setprop ro.qemu.init.completed 1