ajdiaz n00b
Joined: 06 Nov 2006 Posts: 2 Location: Galicia, Spain
|
Posted: Mon Nov 06, 2006 6:40 pm Post subject: Network profiles |
|
|
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... |
|