1#!/vendor/bin/sh 2 3# Check if WiFi is enabled. If it is run the WiFi init script. If not we just 4# have to run the DHCP client in the default namespace and that will set up 5# all the networking. 6wifi=`getprop ro.kernel.qemu.wifi` 7case "$wifi" in 8 1) /vendor/bin/init.wifi.sh 9 ;; 10 *) setprop ctl.start dhcpclient_def 11 ;; 12esac 13 14# set up the second interface (for inter-emulator connections) 15# if required 16my_ip=`getprop net.shared_net_ip` 17case "$my_ip" in 18 "") 19 ;; 20 *) ifconfig eth1 "$my_ip" netmask 255.255.255.0 up 21 ;; 22esac 23 24