Re: Laptop Connects to WAP, But Cannot Access 'Net [FIXED]

John Crowhurst <[email protected]>
Newsgroups gmane.linux.slackware
Message-ID <[email protected]>
Hi Rich,

A few seconds typing:

#!/bin/sh
test=`ip link show wlan0|grep UP`
if [ -z "$test" ]; then
   ifconfig eth0 up
else
   ifconfig eth0 down
fi

The if tests to see if the string is empty and if it is, then bring eth0 
up, otherwise bring eth0 down. You could use ip link set eth0 down if 
you prefer over ifconfig.

Best,

John
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.