View previous topic :: View next topic |
Author |
Message |
ayvango Tux's lil' helper
Joined: 08 Feb 2012 Posts: 118
|
Posted: Sat Sep 14, 2013 2:22 pm Post subject: dynamically adjust network configuration |
|
|
I'm using gentoo on notebook and want it automatically select one of human-writable network profiles depending on network identity (calculated possibly by router MAC-address), apply it and restart needed network services such as sshd.
What is the proffered way for gentoo to do so? I would like use net service for full, because I really like it and hate inventing unjustified entities. |
|
Back to top |
|
|
thegeezer n00b
Joined: 11 Jul 2010 Posts: 38
|
Posted: Tue Sep 24, 2013 9:50 pm Post subject: runlevels |
|
|
could you not use runlevels to manage this ?
then you can have a runlevel "home" that disables ssh and runs your own script to change network
and a runlevel "away" that starts ssh and dhcpcd |
|
Back to top |
|
|
|