Results 1 to 2 of 2

Thread: How to autorun a script in runlevel2 with a new boot option

  1. #1
    Junior Member registered user
    Join Date
    Jun 2003
    Posts
    27

    How to autorun a script in runlevel2 with a new boot option

    I want to autorun the knoppix installer when Knoppix boots in runlevel 2 (using the 'knoppix 2' boot option). I also want this to happen ONLY when Knoppix is booted with a new boot option - 'knoppix install'.
    I will add the 2 and the install options in isolinux.cfg so the user should type only 'knoppix'.
    How to do this?
    Thanks in advance !

  2. #2
    Junior Member
    Join Date
    Jan 2004
    Posts
    1
    You can write a script with the following beginning:

    Code:
    #!/bin/bash
    
    if [ `cat /proc/cmdline | grep "install"` ]
     then
       ...... run here the commands you want to install knoppix .....
    fi
    This script looks in /proc/cmdline if the bootoption "install" ist entered at boottime and can then run your commands to install knoppix.

    You can put this script in /etc/init.d and make a symlink in /etc/rc2.d.

Similar Threads

  1. New Knoppix boot option: toram
    By aay in forum Tips and Tricks
    Replies: 18
    Last Post: 11-02-2006, 02:18 AM
  2. Install in external HD, but with cd boot option
    By daneel101 in forum Hdd Install / Debian / Apt
    Replies: 3
    Last Post: 11-28-2004, 08:20 PM
  3. installed kanotix to hdb, lost boot option to boot knoppix
    By helios17 in forum General Support
    Replies: 7
    Last Post: 11-27-2004, 06:27 AM
  4. Application autorun
    By sparks40 in forum General Support
    Replies: 3
    Last Post: 06-08-2003, 01:04 PM
  5. knoppix testcd boot option
    By A. Jorge Garcia in forum General Support
    Replies: 0
    Last Post: 04-26-2003, 01:27 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
  •  


Vintage Compaq Portable 1 Desktop Computer + Case + Manuals FOR PARTS OR REPAIR picture

Vintage Compaq Portable 1 Desktop Computer + Case + Manuals FOR PARTS OR REPAIR

$285.00



Vintage Apple Game TAXMAN I + TAXMAN II H.A.L. Labs picture

Vintage Apple Game TAXMAN I + TAXMAN II H.A.L. Labs

$1195.00



Vintage NMB Technologies RT8255CW+ Mechanical Wired Keyboard - Tested picture

Vintage NMB Technologies RT8255CW+ Mechanical Wired Keyboard - Tested

$74.95



5x Vintage SSS SCP1802D SCP1802LD Ceramic CPU 1802 COSMAC 1978 Gold IC picture

5x Vintage SSS SCP1802D SCP1802LD Ceramic CPU 1802 COSMAC 1978 Gold IC

$299.99



vintage Genitizer GT-1212B Plus graphic tablet/digitizer. ( Read description) picture

vintage Genitizer GT-1212B Plus graphic tablet/digitizer. ( Read description)

$420.00



Darwin Keyboards NoteBoard SKR-2033 Vintage Mechanical Feel Keyboard PS/2 TESTED picture

Darwin Keyboards NoteBoard SKR-2033 Vintage Mechanical Feel Keyboard PS/2 TESTED

$89.99



Vintage Dell PC’s Limited Turbo PC 8088 Original First Dell Computer Rare Posts picture

Vintage Dell PC’s Limited Turbo PC 8088 Original First Dell Computer Rare Posts

$1999.95



Super Vintage Cyrix 6X86 P90+GP 80MHz CPU/Processor G5D7604P Gold Top/Bottom/Pin picture

Super Vintage Cyrix 6X86 P90+GP 80MHz CPU/Processor G5D7604P Gold Top/Bottom/Pin

$249.99



Vintage Core CL9 Master Universal Remote Control Steve Wozniak (Apple) READ picture

Vintage Core CL9 Master Universal Remote Control Steve Wozniak (Apple) READ

$1048.88



Vintage Telecom ATT Circuit Board 4k RAM Memory Gold Cap IC Western Electric picture

Vintage Telecom ATT Circuit Board 4k RAM Memory Gold Cap IC Western Electric

$199.99