On Sat, 2003-10-11 at 03:14, Michael Adams wrote: > On Thu, 9 Oct 2003 22:05:10 +0200 > "Johan" <[EMAIL PROTECTED]> wrote: > > > Hi, > > Does linux use the same type of file as autoexec.bat in dos/win to > > perform some operations on startup. > > I would appreciate some input here please. > > Maybe some example? > > Thanks > > Johan > > > > Late post, sorry. > > The system loads the kernal and all its modules then runs init using the > info it finds in /etc/inittab. This file is text and mostly human > readable. As with most config files comment lines start with #. > > Once the system has read which mode (0 to 6) it is meant to start into > then it goes to the relevant folder and reads each file in numeric > order. > - Thus if it is starting in graphics mode (5), it looks into > /etc/rc.d/rc5.d/ and runs these files in order. Each is a > shell script and mainly they each run further scripts found in > /etc/rc.d/init.d/ > > Pay particular attention to the last one in the directory. > /etc/rc.d/rc5.d/S99local Read this one if you wish to add to the > startup. > > Also note that /etc/rc5.d/ is a link to /etc/rc.d/rc5.d/ (windows > refugees read "shortcut") and /etc/init.d/ is a link to > /etc/rc.d/init.d/. These are not there for your convenience really but > for backwards compatability. > > All taken together they equate to autoexec.bat and win.ini but allow > more flexibility. You could if you wish have several new rcX.d > directories which allow you to start / stop / restart in different > modes. You only need to append the new ones to /etc/inittab in the > apropriate place, create (or copy) the rc7.d directory and edit. To > switch from one mode to another type "init X" with "X" being the mode > you wish to switch too. The more useful ones are > 0 = shutdown > 1 = single user startup > 3 = command line startup > 5 = normal graphics startup > 6 = reboot > > Most of the tricks performed by webmin and other config GUI tools > rewrite these startup scripts. > > Also in a terminal type:- > man man > man init > man dmesg > > Purists will probably have a far more thorough explanation but these are > the main startup script files. Things that get loaded into the kernal > during its boot phase enter into the realm of FM, and i don't pretend to > understand this fully (read/var/log/dmesg to see what happens then). > > > HTH
a bit much for a newbie tho -- ++++++++++++++++++++++++++++++++++++++++++ Mandrake HowTo's & More: http://twiki.mdklinuxfaq.org
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com