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
  •  


IBM System X3850-X5 Server w/4x Intel  Xeon E7-4870 CPU , 512 GB DDR3 RAM,NO HDD picture

IBM System X3850-X5 Server w/4x Intel Xeon E7-4870 CPU , 512 GB DDR3 RAM,NO HDD

$1599.99



IBM QRadar xx29 2x Xeon E5-2650v4 2x 900W PSU M5120 12x 3.5

IBM QRadar xx29 2x Xeon E5-2650v4 2x 900W PSU M5120 12x 3.5" Bay Server No RAM

$179.99



DELL POWEREDGE HP IBM SERVER XEON GOLD 5315Y 8 CORE PROCESSOR 3.2 GHZ SRKXR picture

DELL POWEREDGE HP IBM SERVER XEON GOLD 5315Y 8 CORE PROCESSOR 3.2 GHZ SRKXR

$1100.00



IBM X3650 M4 Server System Board 00MX553 00AM209 00Y8499 00Y8457 00D2888 00W2671 picture

IBM X3650 M4 Server System Board 00MX553 00AM209 00Y8499 00Y8457 00D2888 00W2671

$230.00



IBM X3650 M5 5462-AC1,2 X E5-2640V3 2.6GHZ 8C, 16 GB, DUAL 750W, 2 X 1TB SERVER picture

IBM X3650 M5 5462-AC1,2 X E5-2640V3 2.6GHZ 8C, 16 GB, DUAL 750W, 2 X 1TB SERVER

$349.99



IBM SYSTEM X3500 M3 SERVER 7380AC1 TOWER Server XEON E5620 8GB RAID SEE NOTES picture

IBM SYSTEM X3500 M3 SERVER 7380AC1 TOWER Server XEON E5620 8GB RAID SEE NOTES

$111.70



IBM System x3550 M3 1U Server 2x Xeon E5645, 192GB RAM, 2x 300GB HDD (7944-AC1) picture

IBM System x3550 M3 1U Server 2x Xeon E5645, 192GB RAM, 2x 300GB HDD (7944-AC1)

$150.00



IBM Power 720 8202-E4B Server - POWER7 4-Core 3GHz, 8GB, 2x 146GB HDD, 1725W PSU picture

IBM Power 720 8202-E4B Server - POWER7 4-Core 3GHz, 8GB, 2x 146GB HDD, 1725W PSU

$450.00



IBM ADP Server Type 7870 AC1 NO HDD | 128GB RAM PC3L | 2 x Xeon  E5620 picture

IBM ADP Server Type 7870 AC1 NO HDD | 128GB RAM PC3L | 2 x Xeon E5620

$199.99



IBM 7915 AC1 M4 E27R704 Server Intel 2650V2 32GB RAM NO HDD w/ 2x 750w PSU picture

IBM 7915 AC1 M4 E27R704 Server Intel 2650V2 32GB RAM NO HDD w/ 2x 750w PSU

$225.00