View previous topic :: View next topic |
Author |
Message |
VinzC Watchman
Joined: 17 Apr 2004 Posts: 5098 Location: Dark side of the mood
|
Posted: Mon Apr 30, 2007 9:38 pm Post subject: Gentoo network script replacement |
|
|
Hi.
Just for the fun of it I've written my own library of network scripts - I found Gentoo network scripts way too intricate so I made my own ones in a much simpler fashion. Just one question though.
My network script can configure all network adapters with one init script, i.e. /etc/init.d/network. By design there is no more need to create symlinks for each network adapter for the init script brings up/down every interface for which there is a config_XXX variable in the configuration file, /etc/conf.d/network.
Since baselayout expects network scripts to be named net.xxx, is there a way for my script to be recognized as providing network functions?
I'd like to be as compatible with base layout as possible without changing the system too much. For instance, I'd like to set variable RC_NET_STRICT_CHECKING to no so that the network is considered up as soon as my init script is marked started. _________________ Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739! |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
VinzC Watchman
Joined: 17 Apr 2004 Posts: 5098 Location: Dark side of the mood
|
Posted: Tue May 01, 2007 7:57 am Post subject: |
|
|
Thanks UberLord. What functionality do coldplug and hotplug provide as for the network interfaces? Are they responsible for detecting when the cable is plugged in and out? Or are they responsible for running the corresponding (eth0, ath0, wlan0, aso) network init script as soon as a network card is detected? _________________ Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739! |
|
Back to top |
|
|
|