Select Git revision
init.ranchu-net.sh
Bjoern Johansson authored
Make sure the WiFi related binaries are built as vendor binaries. Fix scripts to run vendor binaries. Update manifest to include wifi supplicant. Create a new file for automatically connecting to WiFi. This is the WifiConfigStore.xml file. Previously this was done by wpa_supplicant.conf but that file is no longer used for this purpose. Because of this wpa_supplicant.conf has been updated and no longer has any information about auto connecting. BUG: 74514143 Test: Compile and manually verify that WiFi works. Change-Id: I92953364ccb522636530c6b7af297706133ffe51 (cherry picked from commit f9a1d3b4210313890aba477dba63fe91ea9c4d2b) (cherry picked from commit 596d38e1d9f69553933ed1236ae86938b595385e)
init.ranchu-net.sh 554 B
#!/vendor/bin/sh
# Check if WiFi is enabled. If it is run the WiFi init script. If not we just
# have to run the DHCP client in the default namespace and that will set up
# all the networking.
wifi=`getprop ro.kernel.qemu.wifi`
case "$wifi" in
1) /vendor/bin/init.wifi.sh
;;
*) setprop ctl.start dhcpclient_def
;;
esac
# set up the second interface (for inter-emulator connections)
# if required
my_ip=`getprop net.shared_net_ip`
case "$my_ip" in
"")
;;
*) ifconfig eth1 "$my_ip" netmask 255.255.255.0 up
;;
esac