Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
net.eth0 initscript bugged in baselayout-1.10.1-r2[my fault]
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
cadaker
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jun 2004
Posts: 102
Location: Stockholm, Sweden

PostPosted: Mon Jul 26, 2004 10:48 pm    Post subject: net.eth0 initscript bugged in baselayout-1.10.1-r2[my fault] Reply with quote

The other day I upgraded baselayout to the mentioned version, and now /etc/init.d/net.eth0 seems to use /etc/conf.d/net.eth0 as its configuration file instead of /etc/conf.d/net.

What's going on? I assume it's not done on purpose, since nothing of the kind is mentioned in any docs...
_________________
++?????++ Out of Cheese Error. Redo From Start.


Last edited by cadaker on Tue Jul 27, 2004 1:07 am; edited 2 times in total
Back to top
View user's profile Send private message
Youda
n00b
n00b


Joined: 06 Aug 2002
Posts: 35
Location: Jönköping, Sweden

PostPosted: Mon Jul 26, 2004 11:06 pm    Post subject: Reply with quote

It should look like this!
running baselayout-1.10.1-r2
Code:


5P1D3R / # ls /etc/init.d | grep net
net.eth0
net.lo
netmount

5P1D3R / # ls /etc/conf.d | grep net
net
net.rej



strange..anyway...
_________________
Carpe Diem
Back to top
View user's profile Send private message
cadaker
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jun 2004
Posts: 102
Location: Stockholm, Sweden

PostPosted: Mon Jul 26, 2004 11:27 pm    Post subject: Reply with quote

Hmm. I'll try reemerging baselayout and see if it works like it should.
_________________
++?????++ Out of Cheese Error. Redo From Start.
Back to top
View user's profile Send private message
cadaker
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jun 2004
Posts: 102
Location: Stockholm, Sweden

PostPosted: Mon Jul 26, 2004 11:33 pm    Post subject: Reply with quote

Nope. How very odd.

Code:
root@binky /etc/conf.d # /etc/init.d/net.eth0 start
 * Please make sure that /etc/conf.d/net has one of the following set:
 *   $iface_eth0 for old-style configuration
 *   $ifconfig_eth0 for new-style configuration
 *   $ipaddr_eth0 for iproute2-style configuration
root@binky /etc/conf.d # ln -s net net.eth0
root@binky /etc/conf.d # /etc/init.d/net.eth0 start
 * Bringing eth0 up...
 *   eth0 dhcp                                                            [ ok ]
 *     eth0 received address 192.168.0.101
root@binky /etc/conf.d #


It really uses net.eth0 instead of net.
_________________
++?????++ Out of Cheese Error. Redo From Start.
Back to top
View user's profile Send private message
cadaker
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jun 2004
Posts: 102
Location: Stockholm, Sweden

PostPosted: Tue Jul 27, 2004 12:21 am    Post subject: Reply with quote

Hahaha, I've found the problem, silly me.

When I saw the net config format had changed, I made a backup of net called "net.default". Now, this triggered an initscript feature I had never heard of, where a config file with a .suffix matching the current softlevel will be loaded instead.
So, being in runlevel default, the script happily sourced the incomplete /etc/conf.d/net.default. Then, it went looking for a interface-specific config file, /etc/conf.d/net.eth0, which would clear things up.

Well, it was educational :D. And I've learned to stop putting alien files in /etc/conf.d.
_________________
++?????++ Out of Cheese Error. Redo From Start.
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