LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   remove the network symlinks (/etc/rc.d/rc*.d) & Please help me! (http://www.linuxquestions.org/questions/linux-from-scratch-13/remove-the-network-symlinks-etc-rc-d-rc%2A-d-and-please-help-me-4175435033/)

Forget-Me-Not 11-01-2012 04:14 AM

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!

druuna 11-01-2012 06:25 AM

@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.

Forget-Me-Not 11-02-2012 04:04 AM

Well, I did nothing. I didn't remove the network symlinks.

stoat 11-02-2012 09:26 AM

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.

Forget-Me-Not 11-03-2012 07:36 AM

1 Attachment(s)
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!

stoat 11-03-2012 02:05 PM

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.

Forget-Me-Not 11-04-2012 12:51 AM

Yes, I will do. Thank you very much!!!


All times are GMT -5. The time now is 02:33 AM.