-
Junior Member
registered user
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 !
-
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
-
By aay in forum Tips and Tricks
Replies: 18
Last Post: 11-02-2006, 02:18 AM
-
By daneel101 in forum Hdd Install / Debian / Apt
Replies: 3
Last Post: 11-28-2004, 08:20 PM
-
By helios17 in forum General Support
Replies: 7
Last Post: 11-27-2004, 06:27 AM
-
By sparks40 in forum General Support
Replies: 3
Last Post: 06-08-2003, 01:04 PM
-
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
-
Forum Rules

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
$1195.00

Vintage NMB Technologies RT8255CW+ Mechanical Wired Keyboard - Tested
$74.95

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

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

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
$1999.95

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
$1048.88

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