Report comment


Awesome script - will be using with many projects in the future!

I actually had the same issue Sayed seems to have. It turns out the ssid variable(s) had an extra '/r' character on them and was breaking the SSiD check around line 110.

My hack was to add:
cleanssid=$(echo $ssid | tr -d '\r')

and change:
if (echo "$ssidreply" | grep "$ssid") >/dev/null 2>&1

if (echo "$ssidreply" | grep $cleanssid) >/dev/null 2>&1

I assume there is a better way to get this done (for /n and maybe white space?) on line 18 - but I don't have the intelligence or beer to debug that awk/sed pipe.

Hope this helps someone else along the way!