wifi script
Henk Postma
henkpm at gmail.com
Thu May 4 17:25:58 UTC 2006
Hi Constantine,
On 5/3/06, Constantine Evans <cevans at costinet.org> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Yes, you should just be able to do an essid any when doing this.
>
> Keep in mind that you need to kill dhclient before running this script.
Thanks for the pointer, I forgot about that. The script should now be
#!/bin/bash
echo "* Turning down eth0"
ifconfig eth0 down
echo "* killing all dhcp clients"
killall dhclient
echo "* Turning up eth1"
ifconfig eth1 up
echo "* Connecting to any ESSID"
iwconfig eth1 essid any
echo "* Get an IP address"
dhclient eth1
echo "* The ESSID address is now" `iwgetid`
This should do the trick I guess. Thanks everyone.
-- Henk Postma
--
http://www.its.caltech.edu/~postma/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20060504/af02b66c/attachment.html>
More information about the ubuntu-users
mailing list