wp6
wp6 copied to clipboard
ifconfig -a | grep encap returns nothing
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...
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.