Re: different nwkeys for wifi

2011-07-10 Thread Luis Useche
I use the following perl script below. I saved it in /etc/rc.wireless and apply the following patch: --- netstartFri Jul 8 15:34:09 2011 +++ /etc/netstart Sun Jul 10 11:43:20 2011 @@ -255,6 +255,8 @@ ip6kernel=NO fi +#wifi +/etc/rc.wireless # Configure all the non-loopback i

Re: different nwkeys for wifi

2011-07-10 Thread Amit Kulkarni
> Scenario: I am moving my laptop between different wifi networks > (obviously). Some of these networks are encrypted with WEP, using > various nwkeys. > > What would be an elegant way to remember the various networks' settings > and choose the one I am connecting to at netstart(8) time? Before I s

Re: different nwkeys for wifi

2011-07-10 Thread Gregor Best
I use a simple AWK script which parses the available networks as returned by ifconfig wpi0 scan and selects the first known one it finds. It then creates an /etc/hostname.wpi0 for that network and runs /etc/netstart wpi0. I attached it for reference, though I think it's extremely easy to rebuild fr