1.根目录新建文件wpa_supplicant.conf和ssh
2.编辑wpa_supplicant.conf
country=CN
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="wifi名"
psk="wifi密码"
key_mgmt=WPA-PSK
priority=1
}
network={
ssid="wifi名"
psk="wifi密码"
key_mgmt=WPA-PSK
priority=2
scan_ssid=1
}
网友评论