PDA

View Full Version : autorunning a script when booting at runlevel 2



mbc
03-14-2006, 08:39 PM
Hey folks,

I'm ok with Linux, but no master, so I request the help of some of the sagely contributors here. I've searched, but couldn't find the answer to my question.

What I need to do is have a user boot a system using customized knoppix CD, launch at runlevel 2, and automatically execute a script so that they never see the command line, only respond to prompts by the script. Now, booting into runlevel 2 by default is easy enough, but how do you force the system to autorun a script? Thanks in advance for any help you can give me.

mbc
03-15-2006, 12:12 AM
Typical, as soon as I asked the question, I figured it out, at least most of it. :roll:

You simply place the script in the /etc/init.d/ directory, and then run update-rc.d on it. After rebuilding it, it will execute the script on startup.