Android ã®ãããã¯ã¼ã¯ã®è¨å®æ¹æ³
Android (ã¨ãã¥ã¬ã¼ã¿ãããªãã¦å®æ©) ã®ãããã¯ã¼ã¯ã®è¨å®æ¹æ³ãããã£ããã©ãå¿ãããã ããã¡ã¢ãã¦ããã
/init.rc
70-80 è¡ç®ããã
on boot # basic network init ifup lo hostname localhost domainname localdomain setprop net.dns1 208.67.222.222 # â DNS ãµã¼ãã® IP ã¢ãã¬ã¹
/init.goldfish.rc
å§ãã®ã»ã
on boot setprop ARGH ARGH setprop net.eth0.dns1 10.0.2.3 # â DNS ãµã¼ãã® IP ã¢ãã¬ã¹ setprop net.gprs.local-ip 10.0.2.15 # â 端æ«ã® IP ã¢ãã¬ã¹ setprop ro.radio.use-ppp no setprop ro.build.product generic setprop ro.product.device generic setprop net.dns1 10.0.2.3 # â DNS ãµã¼ãã® IP ã¢ãã¬ã¹
/system/etc/init.goldfish.sh
å§ãã®ã»ã
#!/system/bin/sh ifconfig eth0 10.0.2.15 netmask 255.255.255.0 up # â 端æ«ã® IP ã¢ãã¬ã¹ããµãããããã¹ã¯ route add default gw 10.0.2.2 dev eth0 # â ããã©ã«ãã²ã¼ãã¦ã§ã¤