wp6 icon indicating copy to clipboard operation
wp6 copied to clipboard

ifconfig -a | grep encap returns nothing

Open aphex3k opened this issue 8 years ago • 1 comments

I try to connect a pineapple on eth1 with my internet comming in on eth0. I downloaded wp6.sh and tried it a couple of times but always received the following error:

No Gateway available for selected Internet Interface.

I had a closer look at the script and tried to find out what's wrong and I think I nailed it down to this:

ifaces=($(ifconfig -a | grep encap | awk {'print $1'} | grep -v lo))

If I run just ifconfig -a | grep encap it already returns nothing... I tried to exchange encap for UP but that didn't work either... I ended up editing the lines in the script directly to match my setup and it worked...

aphex3k avatar Mar 12 '16 19:03 aphex3k

I personally changed the first line of the configure function to:

    ifaces=($(ifconfig -a | grep mtu |awk {'print substr($1,1,length($1)-1)'} | grep -v lo))

and the script ran just fine.

ldionmarcil avatar Sep 15 '16 01:09 ldionmarcil