Results 1 to 2 of 2

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

Hybrid View

  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
  •  


Commodore Amiga 500 Vintage Computer A500 No Power Supply picture

Commodore Amiga 500 Vintage Computer A500 No Power Supply

$249.95



 Pi1541 Zero with Epyx Fastload Hat, Case & 16gb SD for Commodore 64 and 128  picture

Pi1541 Zero with Epyx Fastload Hat, Case & 16gb SD for Commodore 64 and 128

$79.99



ZuluSCSI Compact RP2040 - an affordable SCSI-2 (and 1) emulator w/ USB-C picture

ZuluSCSI Compact RP2040 - an affordable SCSI-2 (and 1) emulator w/ USB-C

$45.00



Commodore Amiga 600 Computer w/ PIStorm Framethrower Recapped, Caffeine OS NTSC picture

Commodore Amiga 600 Computer w/ PIStorm Framethrower Recapped, Caffeine OS NTSC

$799.99



MSD SD-2 Super Disk Dual Floppy Drive for Commodore Serial IEEE-488 Box picture

MSD SD-2 Super Disk Dual Floppy Drive for Commodore Serial IEEE-488 Box

$499.99



COMMODORE AMIGA 500 WITH GOTEK NTSC,NO PSU ,NO MOUSE ,NO MONITOR ,TESTED picture

COMMODORE AMIGA 500 WITH GOTEK NTSC,NO PSU ,NO MOUSE ,NO MONITOR ,TESTED

$355.00



Vtg Amiga Computer Monitor Commodore 13

Vtg Amiga Computer Monitor Commodore 13" Screen W/ Power Cord Powers On As Is

$279.95



Vintage Commodore Amiga A500 Computer with Power Supply & Tank Mouse - Untested picture

Vintage Commodore Amiga A500 Computer with Power Supply & Tank Mouse - Untested

$400.00



PAL Commodore Amiga 2000 Vintage Computer Works Dual 3.5

PAL Commodore Amiga 2000 Vintage Computer Works Dual 3.5" NICE READ

$529.00



OPEN BOX - AMIGA Genlock Interface Vintage Video Adapter 1300- GREAT picture

OPEN BOX - AMIGA Genlock Interface Vintage Video Adapter 1300- GREAT

$329.95