Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 47399 - net.eth1 must not be a symlink to net.eth1
Summary: net.eth1 must not be a symlink to net.eth1
Status: RESOLVED DUPLICATE of bug 29512
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Gentoo Linux x86 Installation Guide (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Docs Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-09 17:53 UTC by Niels Teglsbo
Modified: 2005-07-17 13:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Niels Teglsbo 2004-04-09 17:53:25 UTC
I am reading http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1 and I want to make an initscript for eth1.

The document says:

Code Listing 16: Creating extra initscripts

# cd /etc/init.d
# ln -s net.eth0 net.eth1
# rc-update add net.eth1 default

But that results in a net.eth1 that thinks it responsible for eth0:

 lisa init.d # ./net.eth1 start 
  * WARNING:  "net.eth0" has already been started.

A solution is to make it a hardlink instead of a symlink:

ln net.eth0 net.eth1

The problem is also discussed in http://forums.gentoo.org/viewtopic.php?t=131606&highlight=eth1+eth0+already+started where they suggest copying the files.


Reproducible: Always
Steps to Reproduce:
Preconditions: eth0 started
1. cd /etc/init.d
2. ln -s net.eth0 net.eth1
3. ./net.eth1 start

Actual Results:  
  * WARNING:  "net.eth0" has already been started.
Comment 1 SpanKY gentoo-dev 2004-04-09 23:46:56 UTC
update your baselayout

*** This bug has been marked as a duplicate of 29512 ***