Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo network script replacement
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Mon Apr 30, 2007 9:38 pm    Post subject: Gentoo network script replacement Reply with quote

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
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Mon Apr 30, 2007 9:44 pm    Post subject: Reply with quote

Install baselayout-2
Then you can have your script provide "net".

You'll probably want to disable the coldplugging and hotplugging of interfaces though by using this
RC_PLUG_SERVICES="!net.*"
in /etc/conf.d/net

This is not possible with baselayout-1
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Tue May 01, 2007 7:57 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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