LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-19-2007, 11:04 AM   #1
yakoub
Member
 
Registered: Oct 2006
Posts: 99

Rep: Reputation: 15
/etc/rc.d directory


1) i compiled custom kernel and it went good but
when i look at rc.d directory i see a link rc.modules->rc.modules-2.6.21.5-smp
what should i do with this link ? there is another file rc.modules-2.6.21.5 (none smp)
and in my current kernel doesn't include smp

2) i put a file under /etc/rc.d/ and made it executable with chmod
all it does is some modprobe calls , but in startup this doesn't run
why doesn't it run ??
 
Old 07-19-2007, 11:25 AM   #2
erklaerbaer
Member
 
Registered: Mar 2006
Posts: 381

Rep: Reputation: 30
you can see in rc.S (or/and M) how the startup works. there is no harm with running rc.modules ( you might get a few errors though, if you omitted some modules ).

you also need to make a call from rc.local to your script to run it.
 
Old 07-19-2007, 11:34 AM   #3
mokele
Member
 
Registered: Jan 2005
Location: Puerto Rico
Distribution: Slackware 13
Posts: 146

Rep: Reputation: 15
For #2

You have to add some lines in your rc.M

Example:

I have a little script in rc.d directory called `rc.smbmounts'
nothing special it just mounts my samba shares.

In orther to make it automatically execute, besides making it
executable I added this lines to rc.M:
Code:
# Mounts smb shares on startup:
if [ -x /etc/rc.d/rc.smbmounts ]; then
  echo "Mounting smb shares:  /etc/rc.d/rc.smbmounts"
  . /etc/rc.d/rc.smbmounts
fi
right at the end of the script. And done. my shares mounts
automatically. Of course there is always a better way. Its
a matter of taste.

Good luck

-W
 
Old 07-19-2007, 12:52 PM   #4
yakoub
Member
 
Registered: Oct 2006
Posts: 99

Original Poster
Rep: Reputation: 15
the book

aren't they going to write about the changes that happened in slackware12.0
in slackbook or other documentation form? (besides the release changelog ..)
 
Old 07-19-2007, 01:01 PM   #5
erklaerbaer
Member
 
Registered: Mar 2006
Posts: 381

Rep: Reputation: 30
http://slackware.osuosl.org/slackware-12.0/


btw, these are not changes from 11.0 to 12.0.
 
Old 07-19-2007, 02:05 PM   #6
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 768

Rep: Reputation: 64
In rc.S you will find:

# This loads any kernel modules that are needed. These might be required to
# use your ethernet card, sound card, or other optional hardware.
# Priority is given first to a script named "rc.modules.local", then
# to "rc.modules-$FULL_KERNEL_VERSION", and finally to the plain "rc.modules".
# Note that if /etc/rc.d/rc.modules.local is found, then that will be the ONLY
# rc.modules script the machine will run, so make sure it has everything in
# it that you need.

(with the code that follows these notes)

So what i did was rename rc.modules-2.6.21.5-smp (or whatever it was) to rc.modules, (remove the symlink first).
Then edit your rc.modules to suit yourself. Now, whatever kernel you compile, rc.modules will load.
Of course you can enter your own stuff in there as well if udev didn't take care of it. Some people will say do this in rc.modules.local, you can decide for yourself.

tobyl
 
Old 07-19-2007, 06:46 PM   #7
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Quote:
Originally Posted by yakoub
aren't they going to write about the changes that happened in slackware12.0
in slackbook or other documentation form? (besides the release changelog ..)
Hi,

Did you read the Slackware 12.0 CHANGES_AND_HINTS.TXT, UPGRADE.TXT and RELEASE_NOTES?
 
Old 07-19-2007, 07:39 PM   #8
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,448
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Quote:
Originally Posted by yakoub
1) i compiled custom kernel and it went good but
when i look at rc.d directory i see a link rc.modules->rc.modules-2.6.21.5-smp
what should i do with this link ? there is another file rc.modules-2.6.21.5 (none smp)
and in my current kernel doesn't include smp

2) i put a file under /etc/rc.d/ and made it executable with chmod
all it does is some modprobe calls , but in startup this doesn't run
why doesn't it run ??
1) If it's a hanging symlink, delete it. You should then copy or symlink rc.modules-2.6.21.5 to rc.modules.

2) There are several ways of doing what you want to do. The simplest being to add your modprobe calls to rc.local.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Username & Password Sync Fedora Directory and Microsoft Active Directory karnac01 Fedora 4 07-19-2010 12:51 AM
Active Directory User Cannot Write to Samba Home Directory jonwatson Linux - Networking 2 12-19-2006 12:40 PM
LXer: Directory services made easy with Fedora Directory Server LXer Syndicated Linux News 0 12-08-2006 03:54 AM
shell script: delete all directories named directory.# except directory.N brian0918 Programming 3 07-13-2005 06:54 PM
write permissions for directory - not accidently move/deleted the directory linuxgamer Linux - Newbie 10 12-02-2003 03:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration