-
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
HGST Ultrastar HE10 HUH721010ALE600 10TB SATA 6Gb/s 7200RPM 3.5" Enterprise HDD
$69.99
Western Digital WD60PURZ 6TB Hard Drive SATA6 Gb/s 64MB Cache 3.5 Inch
$109.99
WF12F DELL 1TB 7.2K 6GBPS SATA 2.5'' HDD HARD DRIVE ST91000640NS 0WF12F
$25.00
Seagate Exos X16 ST14000NM001G 14TB 512E SATA 6Gb/s 3.5" Enterprise Hard Drive
$169.99
HGST Ultrastar DC HC520 12TB SATA 6Gb 256MB 3.5" Enterprise HDD- HUH721212ALE601
$82.99
Seagate Exos 7E10 ST2000NM000B 2TB 7200RPM SATA 6.0Gb/s 3.5" Internal Hard Drive
$29.99
2 PACK Seagate ST1000LM035 Mobile HDD 1TB 2.5" SATA III Laptop Hard Drive
$26.85
Western Digital WD5000LPLX 500GB 2.5" SATA 32MB 6Gb/s 7200RPM Laptop Hard Drive
$7.99
Seagate Exos 14 TB SATA 6Gb/s 256 MB 7200 rpm Hard Drive HDD
$130.00
Seagate 12TB 7.2K SAS 12G 3.5" Hard Drive HDD ST12000NM004J WL
$85.00