Results 1 to 2 of 2

Thread: autorunning a script when booting at runlevel 2

  1. #1
    Junior Member
    Join Date
    Mar 2006
    Posts
    2

    autorunning a script when booting at runlevel 2

    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.

  2. #2
    Junior Member
    Join Date
    Mar 2006
    Posts
    2
    Typical, as soon as I asked the question, I figured it out, at least most of it.

    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.

Similar Threads

  1. booting into runlevel 1 want a script to autorun
    By nayrhyno in forum Customising & Remastering
    Replies: 1
    Last Post: 07-27-2006, 10:10 PM
  2. How to Create an Autorunning CD -- HELP NEEDED PLEASE
    By indraveni in forum Customising & Remastering
    Replies: 0
    Last Post: 07-06-2006, 04:57 AM
  3. Run a shell script after booting
    By mpweber77 in forum Customising & Remastering
    Replies: 1
    Last Post: 08-01-2005, 06:18 AM
  4. How to boot to runlevel 5 after hdd install.
    By rniles in forum General Support
    Replies: 4
    Last Post: 12-23-2004, 01:50 AM
  5. Problem booting to runlevel 5
    By Panikos in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 09-29-2004, 02:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


KNOPPIX 9.1 Linux Install & Live DVD 32bit & 64bit picture

KNOPPIX 9.1 Linux Install & Live DVD 32bit & 64bit

$19.99



Knoppix Live GNU Linux System 9.1 on Bootable CD / DVD / USB Flash Drive picture

Knoppix Live GNU Linux System 9.1 on Bootable CD / DVD / USB Flash Drive

$5.99



KNOPPIX USB DVD OS , BEST OF ALL HIGHLY RECOMENDED picture

KNOPPIX USB DVD OS , BEST OF ALL HIGHLY RECOMENDED

$11.99



Knoppix Linux Bootable OS v8.6

Knoppix Linux Bootable OS v8.6 "Original Live Operating System" 16G USB Stick

$20.85



Knoppix Linux Bootable OS v8.6

Knoppix Linux Bootable OS v8.6 "Original Live Operating System" 32G USB Stick

$21.42



VINTAGE SOFTWARE | KNOPPIX STD 0.1 (SECURITY TOOLS DISTRIBUTION) picture

VINTAGE SOFTWARE | KNOPPIX STD 0.1 (SECURITY TOOLS DISTRIBUTION)

$7.57



Knoppix NSM 1.2 picture

Knoppix NSM 1.2

$8.00



Hamshack Live DVD-ROM picture

Hamshack Live DVD-ROM

$7.00



Knoppix 5.0.1 ULTRA RARE Linux DVD - Linux Pro Extra August 2006 picture

Knoppix 5.0.1 ULTRA RARE Linux DVD - Linux Pro Extra August 2006

$33.62