The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame^] | 1 | #!/system/bin/sh |
| 2 | |
| 3 | ifconfig eth0 10.0.2.15 netmask 255.255.255.0 up |
| 4 | route add default gw 10.0.2.2 dev eth0 |
| 5 | |
| 6 | qemud=`getprop.ro.kernel.android.qemud` |
| 7 | if 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 |
| 15 | fi |
| 16 | |
| 17 | num_dns=`getprop ro.kernel.android.ndns` |
| 18 | case "$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 | ;; |
| 28 | esac |
| 29 | |
| 30 | # disable boot animation for a faster boot sequence when needed |
| 31 | boot_anim=`getprop ro.kernel.android.bootanim` |
| 32 | case "$boot_anim" in |
| 33 | 0) setprop debug.sf.nobootanimation 1 |
| 34 | ;; |
| 35 | esac |
| 36 | |
| 37 | # this line doesn't really do anything useful. however without it the |
| 38 | # previous setprop doesn't seem to apply for some really odd reason |
| 39 | setprop ro.qemu.init.completed 1 |