-
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
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
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
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
HP ProLiant DL380 Gen9 8SFF Server - E5-2698 v3 - 32Cores - 128GB Ram - 1TB HDD
$299.00
Gigabyte 2U Server 2x E5-2697 v3 128gb Ram 12x 3.5" 12G 9362-8i Raid 2x 800w
$449.99
Dell R730xd 26 Port SFF 2x E5-2697v4 36-Cores H730 128GB Server 2x SFP 10G ENT
$490.00
DELL PowerEdge R630 8SFF Server 2x E5-2690v4 2.6GHz =28 Cores 128GB H730 4xRJ45
$428.00
Dell PowerEdge R620 Server 2x E5-2660 v2 2.2GHz 20 Cores 256GB RAM 1x 480GB SSD
$123.19
HPE Proliant DL360 Gen9 1x Xeon E5-2620 V4 2.10GHZ 32GB DDR4-2133MHZ 2x 500W PSU
$100.95
Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD
$389.99
Lenovo Thinkstation P520 Server XEON W-2135 3.7GHz 64GB 512GB QUADRO P1000
$215.00
Dell Poweredge R210 II Server Xeon E3-1220 v2 3.1ghz Quad Core / NoRam / 1x Tray
$69.99
HP ProLiant DL360p G8 Server 2x E5-2690 2.9GHz 16-Cores / 192GB / P420 / 2x 750w
$189.99