-
run script at boot (init 2)
Hello people,
I would like to run my own script at boot. (init2)
I did
Code:
update-rc.d kopieermap defaults 99
The script is located at /etc/rc.d. A symlink is created at /etc/rc2.d (S99kopieermap)
Still when I boot the remastered iso, the script is not executed. (kn-remaster script)
I use the isolinux.cfg file
Code:
Append 2 ramdisk_size100000 lang=us vt.default_utf8=0 apm=power-off video=640x480 initrd=minirt.gz nomce nosound libata.force=noncq nodrm hpsa.hpsa_allow_any=1 loglevel=1 tz=Europe/amsterdam
Ideas are welcome!
Wierd Jan
Last edited by wjp79; 03-27-2012 at 10:01 AM.
-
Senior Member
registered user
@ wjp79
Can you use this in any way? (from knippix-cheatcodes.txt)
The file "knoppix.sh", if residing in the main KNOPPIX directory, will
be execuded after autoconfiguration and before starting the graphical
desktop. It can be used in order to start additional services.
-
knoppix.sh
Hello,
Yes I read about the file before. But I cant find the file anywhere.
Thats why I tried the "update-rc.d" solution, but that does not work either.
edit: Or does it mean I just create the file if it does not exist?
I did a hdd installation of knoppix 6.7.1 and I am using the kn-remaster script to build my remastered iso.
Wierd Jan
-
Senior Member
registered user
![Quote](images/misc/quote_icon.png)
Originally Posted by
wjp79
edit: Or does it mean I just create the file if it does not exist?
I think this is the correct interpretation.
Also, make this file executable & have appropriate ownership.
And let us know how it works out.
Last edited by utu; 03-27-2012 at 02:50 PM.
-
Hello,
That worked ![Smile](images/smilies/icon_smile.gif)
I have put the script in /opt/knx/knoppix/KNOPPIX and renamed it knoppix.sh
Made the file executable (chmod a+x)
Now it runs fine at boot
Tnx
-
I see, your problem is solved.
Still when I boot the remastered iso, the script is not executed. (kn-remaster script)
I use the isolinux.cfg file
If you want to modify the 'APPEND' lines and you use the kn-remaster script and my bootmenu have a look at this posting.
Last edited by Werner P. Schulz; 03-27-2012 at 04:35 PM.
-
Senior Member
registered user
![Quote](images/misc/quote_icon.png)
Originally Posted by
utu
Can you use this in any way? (from knippix-cheatcodes.txt)
Score one for 'knippix'.
;D
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
![USB Flash Drive Memory Stick Pendrive Thumb Drive 4GB, 8GB, 32GB, 64GB 128GB LOT picture](/store/img/g/EI0AAOSwsBpju-XZ/s-l225/USB-Flash-Drive-Memory-Stick-Pendrive-Thumb-Drive-.jpg)
USB Flash Drive Memory Stick Pendrive Thumb Drive 4GB, 8GB, 32GB, 64GB 128GB LOT
$230.40
![1TB/2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage lot picture](/store/img/g/PDMAAOSwlhdmFJ5R/s-l225/1TB-2TB-USB-3-0-Flash-Drive-Thumb-U-Disk-Memory-St.jpg)
1TB/2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage lot
$80.39
![Type C USB 3.0 Flash Drive Thumb Drive Memory Stick for PC Laptop 1TB 2TB lot picture](/store/img/g/oroAAOSwsJNmFPcr/s-l225/Type-C-USB-3-0-Flash-Drive-Thumb-Drive-Memory-Stic.jpg)
Type C USB 3.0 Flash Drive Thumb Drive Memory Stick for PC Laptop 1TB 2TB lot
$73.29
![Lot SanDisk USB Flash Drive Cruzer Blade Glade Force Ultra Flair Luxe 3.0 3.1 picture](/store/img/g/oQUAAOSwxwNj1Sfz/s-l225/Lot-SanDisk-USB-Flash-Drive-Cruzer-Blade-Glade-For.jpg)
Lot SanDisk USB Flash Drive Cruzer Blade Glade Force Ultra Flair Luxe 3.0 3.1
$149.99
![Sandisk 16GB 32GB 64GB 128GB Cruzer Blade Flash Drive Memory Stick USB Lot Pack picture](/store/img/g/H94AAOSw8zNjfbQ9/s-l225/Sandisk-16GB-32GB-64GB-128GB-Cruzer-Blade-Flash-Dr.jpg)
Sandisk 16GB 32GB 64GB 128GB Cruzer Blade Flash Drive Memory Stick USB Lot Pack
$4.99
![64GB USB 3.0 Flash Drive USB Memory Stick High Speed Retractable USB Thumb Drive picture](/store/img/g/1Q4AAOSwDeRivXJz/s-l225/64GB-USB-3-0-Flash-Drive-USB-Memory-Stick-High-Spe.jpg)
64GB USB 3.0 Flash Drive USB Memory Stick High Speed Retractable USB Thumb Drive
$6.99
![Lenovo Flash Drives 2TB Usb 3.0 Mini High Speed Metal Pendrive. picture](/store/img/g/g-MAAOSwXOtmZxRL/s-l225/Lenovo-Flash-Drives-2TB-Usb-3-0-Mini-High-Speed-Me.jpg)
Lenovo Flash Drives 2TB Usb 3.0 Mini High Speed Metal Pendrive.
$9.99
![2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage New picture](/store/img/g/hh0AAOSwdcBl~UdE/s-l225/2TB-USB-3-0-Flash-Drive-Thumb-U-Disk-Memory-Stick-.jpg)
2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage New
$10.79
![Windows 11 Pro USB Flash Drive With Code picture](/store/img/g/ILQAAOSwu3BmFZ7i/s-l225/Windows-11-Pro-USB-Flash-Drive-With-Code.jpg)
Windows 11 Pro USB Flash Drive With Code
$35.00
![SanDisk Cruzer Glide USB 3.0 16GB 32GB 64GB 128GB 256GB Flash Drive Memory Lot picture](/store/img/g/9aAAAOSwBrNii2iZ/s-l225/SanDisk-Cruzer-Glide-USB-3-0-16GB-32GB-64GB-128GB-.jpg)
SanDisk Cruzer Glide USB 3.0 16GB 32GB 64GB 128GB 256GB Flash Drive Memory Lot
$239.99