ZEROF, speaking with bob about the script we can't improve that without writing from scratch...
So, if you need we can start from 0, but this script in this way is useless, or better, is useful only for that interfaces... I repeat, i wrote it just for my system!!!
bob: what do you think about?
First off .... "but this script in this way is useless"
Its not useless please don't take me out out context ... I know you said that and are just power phrasing what I said but you misunderstood in the way I was explaining
the script is fine !!!! it does as you wrote it to But it doesn't cover all the angles THATS all bro .. NOT that the script is pointless or is written badly { just not complete } other than that the vast majority of people will find it handy !!!
just to reiterate bro .. I was just pointing out about the different cards and that if there were two or three { three is an example } and one wasn't wlan0 i.e ath0 OR wlan1 OR if that one was up and the other was down etc etc etc that the syntax would fail
and since you wrote it just for you and not the general public ITS PERFECT for you and what you want !! .. in that way its flawless !!! & a nice little script
weVeg my PM was just to try to help you Not to bash your script IN any way shape or form { see what i did there ..
} it was just trying to show you that in order to make it a back-box script that you need to cover all angles and areas if the user has or has not got them interfaces or if there is problems and that you should cover all error handlingyou are a big part of the community and I was just trying to teach a man to fish as so to speak .. this is why I PM'ed you and didn't want to point out or slate it on the forum

IM just a troll .. a passer by

while I don't use backbox,backtrack,blackbuntu etc as a distro and use my own I like the community there is no bulls**t artist's on this forum ... and all the people are solid good people thats why I like it.. ...
I help Because I can & I fully respect all the mods and admin on this forum .. while we got off to a bad start thats just me giving some people a hard time

its general the lay of the land.... its how I introduce MY SELF

roll in punching ,kicking and screaming then see whats what !! .. AND THAT WONT ever change this tactic doesn't win many people over But Im not here to make friends Im here to help
maybe I should just keep my opinion's to my self from now on 
sorry bro