Howdy ..

i have a laptop and i travel alot so i worte a small script to the next things: 1.search for wifi network and connect to the it finds #i hope to find a way to search one that have the strogest signal.

2.if lan (eth0) is connected then run connection script #hope to find a way to determine what gateway gave my the link and then run a sutile script :

!/bin/bash
T1=`iwlist eth1 scan|grep ESSID`

if [ "$T1" != "1" ];then
echo $T1
iwconfig eth1 ESSID `iwlist eth1 scan|grep ESSID |tr -d ESSID:` mode manged
#if anyone know how to detrmine the strongest signal and one that is not encrypted
dhclient eth1
fi

T2=`dmesg |grep "eth0"|grep -o "link up"`
if [ "$T2" != "" ]; then
#pptp  client script
cs
#
fi




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to