Hmm, Durands approach seems a bit easier, how about:
Code:
#!/bin/sh
NET=$(grep eth /etc/network/ifstate)

if [ -n "$NET" ]
then
 konsole -e telnet n7us.ne 
 exit 1
else
 echo "Get a net!"
 exit 0
fi
If eth0 is found in /etc/network/ifstate NET gets the value eth0=eth0, then -n tests if the variable NET is not empty and proceeds with telnet, else echoes a message.
Hmm again. His block is still shorter