How to profit by or from "/etc/sysconfig" in Slacware ?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
How to profit by or from "/etc/sysconfig" in Slacware ?
How to profit by or from /etc/sysconfig in Slacware like Debian and RedHat?
I use hwsetup, hwdata, ddcxinfo, kudzu ..etc.
and I want to profit by sysconfig files genereted by them in startup scripts.
/etc/sysconfig holds configuration files that are sourced by various scripts, namely but not limited to, bootscripts.
Code:
mv /etc/rc.d/rc.inet1.conf /etc/sysconfig/inet1.conf
sed -i 's@rc.d/rc.inet1.conf@sysconfig/inet1.conf@g' /etc/rc.d/rc.inet1
Now you have just gained an advantageous benifit of having inet1's config file in a more suitable SysVinit location because that's where things like this go according to Suse, Mandrake, Redhat et. all...
It's just a convience location, nothing more. Doesn't matter where you put config files, as long as they are sourced from the correct location within it's parent script.
My Amigo Linux uses hwsetup, ddcxinfo, and hwdata to perform an initial system setup including an fstab file and xorg.conf.
netcards, mice and CD/DVD are all setup also.
Other devices such as sound cards, etc are also detected, but my auto-setup scripts are quite conservative in what they do.
ddcxinfo is part of the kudzu package and you need the kudzu headers to compile hwsetup. But, they don't use the kudzu libs, and the kudzu binary is not used either.
No real difference in the binaries, except the main config file is renamed /etc/sysconfig/amigo. The main difference is in what gets done with the info. I don't setup everything possible by default.
/usr/lib/amigosetup/firstrun is the main script to follow.
Your fstab is built by subscripts of that.
The script mkxf86config (or mkxorgconf) uses ddcxinfo and hwdata to generate an X config file (from an .in file using sed).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.