DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 8th September 2010
divadgnol67 divadgnol67 is offline
Fdisk Soldier
 
Join Date: Jul 2009
Posts: 67
Thanked 4 Times in 2 Posts
Default Multiple Locations

After reading ifconfig(8) and hostname.if(5) I am still unsure if its possible to insert mulitple settings into my hostname.wpi0 file.

Currently I have it set to use my home network settings. But do I need to change it each time I go to a new location or is there a way to set this once and then when I enter new airspace it will connect automatically.

I often visit a coffee shop in the morning and would like to connect automatically if possible.

I have searched the forums to no avail, but probably have not entered the correct question.

divadgnol67
Reply With Quote
  #2   (View Single Post)  
Old 8th September 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,930
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by divadgnol67 View Post
After reading ifconfig(8) and hostname.if(5) I am still unsure if its possible to insert mulitple settings into my hostname.wpi0 file.
No, the purpose of the /etc/hostname.if file is to define a single default.

If you have several configurations which are repeatedly used, my suggestion would be to put the most frequently used in /etc/hostname.if, and the others indivdually into shell scripts such that you can switch about with a minimum of effort.
Reply With Quote
  #3   (View Single Post)  
Old 8th September 2010
divadgnol67 divadgnol67 is offline
Fdisk Soldier
 
Join Date: Jul 2009
Posts: 67
Thanked 4 Times in 2 Posts
Default

@ocicat,

Thanks. On the ride home I was thinking about creating shell scripts to do just that.

divadgnol67
Reply With Quote
  #4   (View Single Post)  
Old 7th October 2010
wimwauters wimwauters is offline
Port Guard
 
Join Date: Aug 2008
Posts: 36
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by divadgnol67 View Post
@ocicat,

Thanks. On the ride home I was thinking about creating shell scripts to do just that.

divadgnol67
I use little shell scripts to switch from wired networking to 3G USB dongle (for mobile broadband networking). It's so straightforward and robust, you wonder why they don't do it that way at Mickeysoft, all you'd need is a few shortcuts on the enduser desktop
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using multiple BSDs: How hav you implemented them? Mr-Biscuit Off-Topic 20 2nd June 2010 03:11 AM
dhcpd and multiple subnets vdubjunkie OpenBSD General 5 11th March 2009 11:02 PM
Obtaining multiple IPs from ISP via DHCP dextro General software and network 15 9th January 2009 02:36 AM
Using multiple gateways ivanatora FreeBSD General 7 15th November 2008 06:57 PM
Multiple VPN rondynames OpenBSD General 5 24th July 2008 11:51 AM


All times are GMT. The time now is 02:25 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick