LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   LFS 7.0 without sysconfig? (https://www.linuxquestions.org/questions/linux-from-scratch-13/lfs-7-0-without-sysconfig-915723/)

jhwilliams 11-26-2011 11:02 PM

LFS 7.0 without sysconfig?
 
Is it possible to run LFS without the Redhat-style sysconfig? In particular, I miss the Debian-style /etc/network/interfaces, but would generally prefer not to see /etc/sysconfig, overall. The LFS networking scripts make me feel like I'm on CentOS or something - sort of take the magic out of it for me.

magiknight 11-28-2011 07:51 AM

You sure can, you need to rewrite the start up scripts.. I use BSD-Init sytle and have no sysconfig.. I have a rc.inet.conf, rc.inet1 and rc.wireless scripts to make my networking work.

jhwilliams 11-28-2011 08:27 AM

Magicknight,

Cool! I was looking further at the bootscripts; looks maybe like a day-long project, not sure. What resources did you use to set that up? Anything documented? Do you have your scripts posted some place?

It could be useful for me to get an understanding also of what you /haven't/ changed, so that I could keep that when reworking ifup/ifdown etc.

Thanks,
Jameson

magiknight 11-28-2011 04:12 PM

I used this as a guide and built on top of it. it's not that hard, but you will need a little scripting experience to get everything working the way you want it to.

ifup/ifdown are just scripts... edit them to make them work as you want them to.
I personally use ifconfig but that's me. Here is the way i have it set up.

rc.inet.conf is the configuration of my networks
and rc.inet1 actually looks at the information passed by the above script and uses the tools needed to bring up the network or restart it or stop it based on how rc.inet.conf is setup.


All times are GMT -5. The time now is 09:39 AM.