init.goldfish.sh

来自「Android 一些工具」· Shell 代码 · 共 40 行

SH
40
字号
#!/system/bin/shifconfig eth0 10.0.2.15 netmask 255.255.255.0 uproute add default gw 10.0.2.2 dev eth0qemud=`getprop.ro.kernel.android.qemud`if test -z "$qemud"; then    radio_ril=`getprop ro.kernel.android.ril`    if test -z "$radio_ril"; then        # no need for the radio interface daemon        # telephony is entirely emulated in Java        setprop ro.radio.noril yes        stop ril-daemon    fifinum_dns=`getprop ro.kernel.android.ndns`case "$num_dns" in    2) setprop net.eth0.dns2 10.0.2.4    ;;    3) setprop net.eth0.dns2 10.0.2.4    setprop net.eth0.dns3 10.0.2.5    ;;    4) setprop net.eth0.dns2 10.0.2.4    setprop net.eth0.dns3 10.0.2.5    setprop net.eth0.dns4 10.0.2.6    ;;esac# disable boot animation for a faster boot sequence when neededboot_anim=`getprop ro.kernel.android.bootanim`case "$boot_anim" in    0)  setprop debug.sf.nobootanimation 1    ;;esac# this line doesn't really do anything useful. however without it the# previous setprop doesn't seem to apply for some really odd reasonsetprop ro.qemu.init.completed 1

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?