OSDN Git Service

init.sh: enable virt_wifi if needed
authorChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 13 Jun 2019 09:08:41 +0000 (17:08 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 13 Jun 2019 09:08:41 +0000 (17:08 +0800)
commit8ac9fea0db77ce1ace33e04a0da9def54a92ac55
treec03b33dc55eba9a6070df765d8e24da76254d7dc
parentdf62a6675920cf8864f7611764bc0c19e9e1f822
init.sh: enable virt_wifi if needed

Some Android apps are not interested in ethernet devices and would rather
connect to a wireless interface. This patch allows the devices with only
ethernet interface to treat one of its network connections as wireless,
satisfying Android apps's network connection requirements.

The ethernet interface being simulated can be specified by the property
net.virt_wifi. The default is eth0.

The feature is enabled if wlan0 doesn't exist, or VIRT_WIFI=1 is set in
kernel cmdline. To disable it, set VIRT_WIFI=0 kernel cmdline.
init.sh