"Jörg Johannes" <[EMAIL PROTECTED]> writes: > With my laptop, I'd like to access two different networks (depending > on where I am): My home network and university network. > At home, my IP is 192.168.0.99 and hostname shold be "horchloeffel", > at university the IP and hostname are set to other fixed values. What > I'd like to do is choosing at boot-time which network configuration to > load. Is it possible to write a shell script that is invoked by a lilo > parameter? It would have to set the hostname, the nameservers and the > IP adress according to predefined values (should be simple to write > two configurations, say /etc/hostname.uni and /etc/hostname.home, one > of which is copied to /etc/hostname and so on). > Is this possible, or are there other (better) solutions for doing this task?
It pays to know how to use Google Groups! http://groups.google.com/groups?safe=images&ie=UTF-8&oe=UTF-8&as_ugroup=*debian*&as_usubject=laptop%20environment%20detection&lr=lang_en&num=100&hl=en This should net you a thread started by Martin Krafft on this very subject about a month or two ago. He surveyed quite a few utilities with the capabilities you desire, and more. Gary -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]