LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 11-01-2012, 03:14 AM   #1
Forget-Me-Not
Member
 
Registered: Oct 2012
Posts: 55
Blog Entries: 1

Rep: Reputation: Disabled
remove the network symlinks (/etc/rc.d/rc*.d) & Please help me!


I'm doing Chapter 7(Setting Up System Bootscripts)
http://www.linuxfromscratch.org/lfs/...7/network.html

If a network card will not be used, there is likely no need to create any configuration files relating to network cards. If that is the case, you will need to remove the network symlinks from all run-level directories (/etc/rc.d/rc*.d) after the bootscripts are installed in Section 7.6, “LFS-Bootscripts-20120901”.

And I follow this instruction:
http://sun0.cs.uca.edu/~administrato...s/lfs/ch7.html

I don't know how to remove the network symlinks from all run-level directories (/etc/rc.d/rc*.d)
P/S: I feel chapter 7 which is hard thus I don't sure anything.

Thank you so much!
 
Old 11-01-2012, 05:25 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
@Forget-Me-Not: You've marked this as [SOLVED], but you did not post the solution to your problem. Please do so, others might benefit from this if/when they encounter the same issue.

Anyway: Off the zero-reply list.
 
Old 11-02-2012, 03:04 AM   #3
Forget-Me-Not
Member
 
Registered: Oct 2012
Posts: 55
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Well, I did nothing. I didn't remove the network symlinks.
 
Old 11-02-2012, 08:26 AM   #4
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 465

Rep: Reputation: 133Reputation: 133
Quote:
Originally Posted by Forget-Me-Not

Well, I did nothing. I didn't remove the network symlinks.
Symlinks are removed like anything else in the filesystem. Delete them like you would a file.

Another thing you can do to disable a daemon in a runlevel is to rename the symlink to have a K instead of an S as the first letter.

Last edited by stoat; 11-02-2012 at 08:31 AM.
 
Old 11-03-2012, 06:36 AM   #5
Forget-Me-Not
Member
 
Registered: Oct 2012
Posts: 55
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Attached file is output installation of lfs-bootscript-20120901.
If I remove the network symlinks from all run-level directories (/etc/rc.d/rc*.d). It will be
Quote:
root:/sources/lfs-bootscripts-20120901# make install
install -d -m 755 /etc/rc.d/rc0.d
install -d -m 755 /etc/rc.d/rc1.d
install -d -m 755 /etc/rc.d/rc2.d
install -d -m 755 /etc/rc.d/rc3.d
install -d -m 755 /etc/rc.d/rc4.d
install -d -m 755 /etc/rc.d/rc5.d
install -d -m 755 /etc/rc.d/rc6.d
install -d -m 755 /etc/rc.d/rcS.d
install -d -m 755 /etc/rc.d/init.d
install -d -m 755 /etc/sysconfig
install -d -m 755 /lib/services
install -d -m 755 /usr/share/man/man8
install -d -m 755 /sbin
ln -sfn services /lib/lsb
ln -sfn rc.d/init.d /etc/init.d
install -m 754 lfs/init.d/checkfs /etc/rc.d/init.d/
install -m 754 lfs/init.d/cleanfs /etc/rc.d/init.d/
install -m 754 lfs/init.d/halt /etc/rc.d/init.d/
install -m 754 lfs/init.d/console /etc/rc.d/init.d/
install -m 644 lfs/init.d/functions /etc/rc.d/init.d/
install -m 754 lfs/init.d/localnet /etc/rc.d/init.d/
install -m 754 lfs/init.d/modules /etc/rc.d/init.d/
install -m 754 lfs/init.d/mountfs /etc/rc.d/init.d/
install -m 754 lfs/init.d/mountvirtfs /etc/rc.d/init.d/
install -m 754 lfs/init.d/network /etc/rc.d/init.d/
install -m 754 lfs/init.d/rc /etc/rc.d/init.d/
install -m 754 lfs/init.d/reboot /etc/rc.d/init.d/
install -m 754 lfs/init.d/sendsignals /etc/rc.d/init.d/
install -m 754 lfs/init.d/setclock /etc/rc.d/init.d/
install -m 754 lfs/init.d/swap /etc/rc.d/init.d/
install -m 754 lfs/init.d/sysctl /etc/rc.d/init.d/
install -m 754 lfs/init.d/sysklogd /etc/rc.d/init.d/
install -m 754 lfs/init.d/template /etc/rc.d/init.d/
install -m 754 lfs/init.d/udev /etc/rc.d/init.d/
install -m 754 lfs/init.d/udev_retry /etc/rc.d/init.d/
install -m 754 lfs/sbin/ifup /sbin
install -m 754 lfs/sbin/ifdown /sbin
install -m 754 lfs/sbin/ifup.8 /usr/share/man/man8
ln -sf ifup.8 /usr/share/man/man8/ifdown.8
install -m 754 lfs/lib/services/ipv4-static-route /lib/services
install -m 754 lfs/lib/services/ipv4-static /lib/services
install -m 644 lfs/lib/services/init-functions /lib/services
if [ ! -f /etc/sysconfig/createfiles ]; then \
install -m 644 lfs/sysconfig/createfiles /etc/sysconfig/ ;\
fi
if [ ! -f /etc/sysconfig/modules ]; then \
install -m 644 lfs/sysconfig/modules /etc/sysconfig/ ;\
fi
if [ ! -f /etc/sysconfig/udev_retry ]; then \
install -m 644 lfs/sysconfig/udev_retry /etc/sysconfig/ ;\
fi
if [ ! -f /etc/sysconfig/rc.site ]; then \
install -m 644 lfs/sysconfig/rc.site /etc/sysconfig/ ;\
fi
If I replace K instead of S letter, it will be
Quote:
ln -sf ../init.d/mountvirtfs /etc/rc.d/rcS.d/K00mountvirtfs
ln -sf ../init.d/modules /etc/rc.d/rcS.d/K05modules
ln -sf ../init.d/localnet /etc/rc.d/rcS.d/K08localnet
ln -sf ../init.d/udev /etc/rc.d/rcS.d/K10udev
ln -sf ../init.d/swap /etc/rc.d/rcS.d/K20swap
ln -sf ../init.d/checkfs /etc/rc.d/rcS.d/K30checkfs
ln -sf ../init.d/mountfs /etc/rc.d/rcS.d/K40mountfs
ln -sf ../init.d/cleanfs /etc/rc.d/rcS.d/K45cleanfs
ln -sf ../init.d/udev_retry /etc/rc.d/rcS.d/K50udev_retry
ln -sf ../init.d/console /etc/rc.d/rcS.d/K70console
ln -sf ../init.d/sysctl /etc/rc.d/rcS.d/K90sysctl
ln -sf ../init.d/network /etc/rc.d/rc0.d/K80network
ln -sf ../init.d/sysklogd /etc/rc.d/rc0.d/K90sysklogd
ln -sf ../init.d/sendsignals /etc/rc.d/rc0.d/K60sendsignals
ln -sf ../init.d/swap /etc/rc.d/rc0.d/K65swap
ln -sf ../init.d/mountfs /etc/rc.d/rc0.d/K70mountfs
ln -sf ../init.d/localnet /etc/rc.d/rc0.d/K90localnet
ln -sf ../init.d/halt /etc/rc.d/rc0.d/K99halt
ln -sf ../init.d/network /etc/rc.d/rc1.d/K80network
ln -sf ../init.d/sysklogd /etc/rc.d/rc1.d/K90sysklogd
ln -sf ../init.d/network /etc/rc.d/rc2.d/K80network
ln -sf ../init.d/sysklogd /etc/rc.d/rc2.d/K90sysklogd
ln -sf ../init.d/sysklogd /etc/rc.d/rc3.d/K10sysklogd
ln -sf ../init.d/network /etc/rc.d/rc3.d/K20network
ln -sf ../init.d/sysklogd /etc/rc.d/rc4.d/K10sysklogd
ln -sf ../init.d/network /etc/rc.d/rc4.d/K20network
ln -sf ../init.d/sysklogd /etc/rc.d/rc5.d/K10sysklogd
ln -sf ../init.d/network /etc/rc.d/rc5.d/K20network
ln -sf ../init.d/network /etc/rc.d/rc6.d/K80network
ln -sf ../init.d/sysklogd /etc/rc.d/rc6.d/K90sysklogd
ln -sf ../init.d/sendsignals /etc/rc.d/rc6.d/K60sendsignals
ln -sf ../init.d/swap /etc/rc.d/rc6.d/K65swap
ln -sf ../init.d/mountfs /etc/rc.d/rc6.d/K70mountfs
ln -sf ../init.d/localnet /etc/rc.d/rc6.d/K90localnet
ln -sf ../init.d/reboot /etc/rc.d/rc6.d/K99reboot
I just thought that. And I don't know which's right?
Hope you show me! Thank you very much!
Attached Files
File Type: txt lfs-bootscripts-20120901.txt (4.6 KB, 1 views)

Last edited by Forget-Me-Not; 11-03-2012 at 06:38 AM.
 
Old 11-03-2012, 01:05 PM   #6
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 465

Rep: Reputation: 133Reputation: 133
Quote:
Originally Posted by Forget-Me-Not

And I don't know which's right?
It wasn't a right or wrong situation. Both things I mentioned are right to prevent a daemon from starting. I merely mentioned two ways to do the same thing. I thought I was passing along some useful information about init script symlinks, but all I did was inject confusion and make matters worse. I regret that now.

Just do what the book says. If you don't intend to use a network card, then delete the symlinks to /etc/rc.d/init.d/network in all runlevels.
 
Old 11-03-2012, 11:51 PM   #7
Forget-Me-Not
Member
 
Registered: Oct 2012
Posts: 55
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Yes, I will do. Thank you very much!!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] how to remove the symlinks jayakumar01 Linux - Server 2 12-13-2011 11:01 AM
Remove & restore panel in kde 3.5 joegumbo Slackware 5 02-18-2009 10:36 PM
how to remove ubuntu8.04 from a dual boot lappy as has 8.04 & 8.10 & windows Cooder Linux - Newbie 1 12-13-2008 04:54 AM
Remove? /etc/shadow- & /etc/passwd- lcat Linux - Security 2 08-22-2004 10:26 AM
Apache & Squirrelmail.. cannot remove SqMail? jrbush82 Linux - Software 1 05-02-2004 09:04 AM


All times are GMT -5. The time now is 01:40 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration