Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Network profiles
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
ajdiaz
n00b
n00b


Joined: 06 Nov 2006
Posts: 2
Location: Galicia, Spain

PostPosted: Mon Nov 06, 2006 6:40 pm    Post subject: Network profiles Reply with quote

Hello world!

I hacked up a small network module for baselayout. It allows to set up a number of profiles for each network interface, and easily select between them. Like MacOSX's network profiles, but my solution may be stacked with other network modules :)

Suppose you have the following in /etc/conf.d/net.eth0:

Code:

  config_eth0=( "profile" )

  config_home=( "dhcp" )
  config_work=( "192.168.0.10/24" )


Now you can type in a console:

Code:
NETPROFILE=work /etc/init.d/net.eth0 restart


This switch to profile called work. (Be sure that NETPROFILE is listed in /etc/conf.d/env_whitelist).

A detailed information can be read from here, and
of course, the code can be download from here.

I would appreciate your comments, suggest, bug reports... :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum