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
  •  


Intel Core i7-3770K 3.5 GHz Processor picture

Intel Core i7-3770K 3.5 GHz Processor

$39.00



Intel Core i7-9700 3.0 GHz Octo-Core (SRG13) Processor picture

Intel Core i7-9700 3.0 GHz Octo-Core (SRG13) Processor

$79.00



Intel Core i5-11500 2.70 GHz LGA 1200 Desktop CPU Processor SRKNY picture

Intel Core i5-11500 2.70 GHz LGA 1200 Desktop CPU Processor SRKNY

$94.99



OEM Dell Optiplex 3080 5080 7080 MFF Fan ONLY JV47V 0JV47V picture

OEM Dell Optiplex 3080 5080 7080 MFF Fan ONLY JV47V 0JV47V

$11.40



Intel 4th Gen Core i7-4790 SR1QF 3.60GHz (Turbo 4.00GHz) 8M 4-Core LGA-1150 CPU picture

Intel 4th Gen Core i7-4790 SR1QF 3.60GHz (Turbo 4.00GHz) 8M 4-Core LGA-1150 CPU

$39.99



Intel Core i7-7700T 2.9GHz 8MB Socket LGA1151 Quad Core Processor SR339 picture

Intel Core i7-7700T 2.9GHz 8MB Socket LGA1151 Quad Core Processor SR339

$39.99



Intel i7-8700 Coffee Lake 3.2GHz 6-Core Max Turbo 4.6GHz Processor picture

Intel i7-8700 Coffee Lake 3.2GHz 6-Core Max Turbo 4.6GHz Processor

$69.99



Intel Core i7-6700 3.40 GHz QUAD Core (4 Core) Desktop Processor 8MB LGA 1151 picture

Intel Core i7-6700 3.40 GHz QUAD Core (4 Core) Desktop Processor 8MB LGA 1151

$29.99



LAST BATCH *Brand New-Sealed* AMD Ryzen 9 9950X3D2 Dual Ed. 4.3GHz 16Core AM5 picture

LAST BATCH *Brand New-Sealed* AMD Ryzen 9 9950X3D2 Dual Ed. 4.3GHz 16Core AM5

$798.00



Corsair RM750e 750W Fully Modular 80 Plus Gold ATX 3.1 PSU Certified Refurbished picture

Corsair RM750e 750W Fully Modular 80 Plus Gold ATX 3.1 PSU Certified Refurbished

$44.99