1 minute, 4 seconds
sudo nano /etc/network/interfaces
Change the wlan0 ip address to dhcp or static and the address of your choosingSave the file with “control o” then exit with “control x”
sudo nano /etc/wpa_supplicant.conf
enter the following with your SSID and password of the network you are connecting tonetwork={
ssid="SSID_NAME"
psk="PASSWORD"
}
Save the file with “control o” then exit with “control x”
sudo nano /etc/rc.local
Change /opt/teal/sbin/config-based-wifi-teal.sh
to # /opt/teal/sbin/config-based-wifi-teal.sh
Save the file with “control o” then exit with “control x”
Create a file with this commandsudo nano /opt/teal/sbin/tealwifiwpasupp.sh
Enter the following#!/bin/bash
wpa_supplicant -c /etc/wpa_supplicant.conf -i wlan0
Save the file with “control o” then exit with “control x”
Create a file with the following command sudo nano /etc/systemd/system/tealwpasupp.service
Enter the following[Unit]
Description=WPA based wifi setup
After=syslog.target local-fs.target remote-fs.target
[Service]
Type=oneshot
ExecStartPre=/bin/sleep 30
ExecStart=/opt/teal/sbin/tealwifiwpasupp.sh
#TimeoutSec=20s
#WatchdogSec=10s
#Restart=always
#StartLimitInterval=5min
#StartLimitBurst=4
#StartLimitAction=none
[Install]
WantedBy=multi-user.target
Save the file with “control o” then exit with “control x”
Enable it with the followingsudo systemctl enable /etc/systemd/system/tealwpasupp.service
Reboot the drone with sudo reboot
and the wifi should connect on boot