LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   What is the autoexec.bat and config.sys equivalent of linux (https://www.linuxquestions.org/questions/linux-newbie-8/what-is-the-autoexec-bat-and-config-sys-equivalent-of-linux-263780/)

lemuel 12-07-2004 05:30 PM

What is the autoexec.bat and config.sys equivalent of linux
 
Hello

I'm wanted to tweak the way my system boots up. in windows I usually just edit the config.sys and autoexec.bat. But how do I do it in Linux?

acid_kewpie 12-07-2004 05:37 PM

autoexec.bat was fine on a single user crap system, but the concept of what it does breaks down on a true multi-user system. what are you trying t achieve? services get started though links in /etc/rc5.d and there are LOADS f places for automatic scritps to run, each suited to a different scope. e.g. /etc/rc.local is run at the end of bootup. ~/.bashrc is run each time you personally log on etc...

lemuel 12-07-2004 05:45 PM

well actually my real problem is that everytime I boot, the system checks my eth0 and displays [failed], then It crashes afterwards. so what i usually do is I press the "I" key during bootup and bypass the eth0 check.

I wanted to remove that part of the bootup so I don't have to press "I" everytime I go to linux

IBall 12-07-2004 09:34 PM

In Mandrake, there should be a section in the Control Centre that allows you to change the services at startup. I think the service that checks eth0 would be network or something. Have a look and see what you can find.

I hope this helps
--Ian

btmiller 12-07-2004 09:34 PM

"chkconfig network off" (no quotes) should do the trick. The better way, though, is probably to disable the interface on boot. To do so in Red Hat/Fedora, go to /etc/sysconfig/network-scripts, find the eth0 script and set ONBOOT to no. I'm not sure if it's in the same place in Mandrake, but as MDK is RH based, it may be. It's been again since I've used Mandrake, though, sorry.

A google on this and for "linux boot process" ought to help. The system initialization is more complicated and much more customizable than what you're used to in Windows.


All times are GMT -5. The time now is 08:41 PM.