Update wifi_connect.sh

increased sleep to give wlan0 a chance to wake up
master
Darren Kitchen 2019-09-07 13:28:52 -07:00 committed by GitHub
parent eb5003733e
commit 2b7015ea11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -5,8 +5,7 @@
# Author: Hak5Darren # Author: Hak5Darren
function WIFI_CONNECT() { function WIFI_CONNECT() {
logger running extension: wifi_connect ifconfig wlan0 up;sleep 10
ifconfig wlan0 up;sleep 2
echo -e "network={\nssid=\"$WIFI_SSID\"\npsk=\"$WIFI_PASS\"\npriority=1\n}">/tmp/wpa.conf echo -e "network={\nssid=\"$WIFI_SSID\"\npsk=\"$WIFI_PASS\"\npriority=1\n}">/tmp/wpa.conf
wpa_supplicant -B -Dnl80211 -i wlan0 -c /tmp/wpa.conf wpa_supplicant -B -Dnl80211 -i wlan0 -c /tmp/wpa.conf
while(iwconfig wlan0 | grep Not-Associated); do sleep 1; done while(iwconfig wlan0 | grep Not-Associated); do sleep 1; done