wp6.sh won't detect nano with Alfa card

Device: NANO
Type: Bug
Status: Open

I just noticed the wp6.sh script won't detect a Nano if you plugged an alfa adapter plugged in first.  The script is just looking for the vendor code portion of the mac to match Alfa or 1337.  Makes sense on 1337 since it seems unlikely that anyone is testing with whatever hardware OrientPo makes, but Alfa's seem a little more common.  I just set up the interfaces manually, but after looking at the script it should just be a matter of removing the "head -1" command or at least switching the order so the grep happens first.   

line 135 

pineappledetected=$(ip addr | grep '00:[cC]0:[cC][aA]\|00:13:37' -B1 | awk {'print $2'} | head -1 | grep 'eth\|en')

should be

pineappledetected=$( ip addr | grep '00:[cC]0:[cC][aA]\|00:13:37' -B1 | awk {'print $2'} | grep 'eth\|en' | head -1)


There are currently no comments.

Add Comment:

Please log in to comment.