Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 36597 - Document depscan.sh script
Summary: Document depscan.sh script
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Sven Vermeulen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-27 10:47 UTC by Martin Mokrejš
Modified: 2003-12-28 03:13 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 Martin Mokrejš 2003-12-27 10:47:42 UTC
Once I've added eth1 to my system and remebered I had to run some script after making the net.eth1 script. Please, document directly in /etc/conf.d/net that:

when configuring more interface cards(or even eth1394 or usbnet interfaces), user
has to do:

cd /etc/init.d
cp net.eth0 net.eth1   # softlink doesn't work!
rc-update add net.eth1 default
depscan.sh

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 SpanKY gentoo-dev 2003-12-27 11:23:27 UTC
sounds like you need to update your baselayout

softlinks work just fine with the latest version
Comment 2 SpanKY gentoo-dev 2003-12-27 11:26:43 UTC
also, in http://www.gentoo.org/doc/en/rc-scripts.xml it talks about running depscan.sh
Comment 3 Martin Mokrejš 2003-12-27 15:14:41 UTC
I used gentoo 1.4 installation CDs and if I remeber right, the softlink did not work. The http://www.gentoo.org/doc/en/handbook/handbook.xml?part=1&chap=8 doesn't talk about that document(rc-scripts.xml)!

So the rc-scripts.xml says:
"It should be run whenever a new rc-script is added to /etc/init.d/, but since rc-update automatically calls it, most users should not need to run it."

My question is. Are you sure it get's called automatically? Why did I have to google around and find what I have to do to add the net.eth1 script?
Comment 4 SpanKY gentoo-dev 2003-12-27 17:43:22 UTC
like i said, make sure your baselayout is up-to-date ... softlinks used to be broken but they've been fixed

as for why you had to google, i dunno ... couldnt you read the Gentoo documentation index ?
Comment 5 Sven Vermeulen (RETIRED) gentoo-dev 2003-12-28 03:11:38 UTC
Users shouldn't deal with depscan.sh. rc-update really uses it, yes :) When you add an initscript to some runlevel, the following code is executed:

"""
    regen=1
    einfo "${myscript} added to runlevel ${x}"
"""

This change of the regen variable forces depscan.sh to be run:

"""
if [ "${regen}" -eq 1 ]
then
  /sbin/depscan.sh
  einfo "rc-update complete."
fi
"""


Concerning the symlinks: they work, but I believe some users update baselayout without letting the changes go through (i.e. they discard the ._cfg stuff) making the symlinks fail nevertheless. 
Comment 6 Sven Vermeulen (RETIRED) gentoo-dev 2003-12-28 03:13:05 UTC
I don't see the need to go talk about depscan.sh more than is currently the case (i.e. just mentioning it once). The tool isn't meant for immediate usage (otherwise it would have a manpage :).