View previous topic :: View next topic |
Author |
Message |
cadaker Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/6232017774248947e8cec1.png)
Joined: 05 Jun 2004 Posts: 102 Location: Stockholm, Sweden
|
Posted: Mon Jul 26, 2004 10:48 pm Post subject: net.eth0 initscript bugged in baselayout-1.10.1-r2[my fault] |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Youda n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/14675641213f7e0a9516271.jpg)
Joined: 06 Aug 2002 Posts: 35 Location: Jönköping, Sweden
|
Posted: Mon Jul 26, 2004 11:06 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
cadaker Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/6232017774248947e8cec1.png)
Joined: 05 Jun 2004 Posts: 102 Location: Stockholm, Sweden
|
Posted: Mon Jul 26, 2004 11:27 pm Post subject: |
|
|
Hmm. I'll try reemerging baselayout and see if it works like it should. _________________ ++?????++ Out of Cheese Error. Redo From Start. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cadaker Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/6232017774248947e8cec1.png)
Joined: 05 Jun 2004 Posts: 102 Location: Stockholm, Sweden
|
Posted: Mon Jul 26, 2004 11:33 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
cadaker Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/6232017774248947e8cec1.png)
Joined: 05 Jun 2004 Posts: 102 Location: Stockholm, Sweden
|
Posted: Tue Jul 27, 2004 12:21 am Post subject: |
|
|
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 . And I've learned to stop putting alien files in /etc/conf.d. _________________ ++?????++ Out of Cheese Error. Redo From Start. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|