On Sat, Nov 02, 2002 at 08:12:44PM -0600, Brian D. Hicks wrote:
> I'm running debian on my laptop and there are two wireless networks I
> use it on often.  One of them requires I set the ESSID to a certain
> value, and another does not.  Now I know that you can do mapping in
> /etc/network/interfaces, but I was wondering if there was a method where
> the ifup script would first try not having a essid set, and then try it
> with the essid of the network that requires it to be set.

Have you looked at any of the laptop helper packages in Debian
(apt-cache search laptop)? They can be very useful for
configuring network laptops for a variety of networks.
In particular, take a look at whereami, divine or laptop-net.
With some combination of those packages you should be able to do
what you want.

Else you probably could hack ifup to do what you want, but I
think that it would be less robust.


-- 
Jim Crumley                  |Twin Cities Linux Users Group Mailing List (TCLUG)
crumley at fields.space.umn.edu |Minneapolis/St. Paul, Minnesota 
Ruthless Debian Zealot       |http://www.mn-linux.org/ 
Never laugh at live dragons  |Dmitry's free,Jon's next? http://faircopyright.org