Results 1 to 7 of 7

Thread: run script at boot (init 2)

  1. #1
    Junior Member
    Join Date
    Dec 2011
    Location
    Stiens (FRL) Netherlands
    Posts
    27

    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.

  2. #2
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631
    @ 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.

  3. #3
    Junior Member
    Join Date
    Dec 2011
    Location
    Stiens (FRL) Netherlands
    Posts
    27

    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

  4. #4
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631
    Quote Originally Posted by wjp79 View Post
    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.

  5. #5
    Junior Member
    Join Date
    Dec 2011
    Location
    Stiens (FRL) Netherlands
    Posts
    27
    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

  6. #6
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    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.

  7. #7
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631
    Quote Originally Posted by utu View Post
    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
  •  

Dell PowerEdge R720 Server / 2x E5-2630 = 12 Cores / 32GB RAM / H710 picture

Dell PowerEdge R720 Server / 2x E5-2630 = 12 Cores / 32GB RAM / H710

$308.80



Chenbro NR12000 1U 1x 8m QUAD CORE E3-1220 3.1GHz 8GB RAM NO HDD picture

Chenbro NR12000 1U 1x 8m QUAD CORE E3-1220 3.1GHz 8GB RAM NO HDD

$162.00



HP MicroServer Gen8 Server / 1x E3-1220L V2 @ 2.30GHz / 0 HDD/ NO RAM picture

HP MicroServer Gen8 Server / 1x E3-1220L V2 @ 2.30GHz / 0 HDD/ NO RAM

$179.99



Supermicro 2U X8DT3 2x E5620 2.4ghz 8-Cores / 24gb Ram / 12x Trays / 2x 720w picture

Supermicro 2U X8DT3 2x E5620 2.4ghz 8-Cores / 24gb Ram / 12x Trays / 2x 720w

$179.99



Dell PowerEdge R710 2U Server 2x X5660 2.80GHZ 12-Core / 64gb / 2xTrays / Perc6i picture

Dell PowerEdge R710 2U Server 2x X5660 2.80GHZ 12-Core / 64gb / 2xTrays / Perc6i

$199.99



Dell PowerEdge R720XD Server | 2x E5-2670 16 Cores | 64GB | H710 | 24TB Storage picture

Dell PowerEdge R720XD Server | 2x E5-2670 16 Cores | 64GB | H710 | 24TB Storage

$834.95



HYVE ZEUS V1 1U SERVER 1x XEON QUAD CORE E5-2609 2.4GHz 4GB RAM NO HDD picture

HYVE ZEUS V1 1U SERVER 1x XEON QUAD CORE E5-2609 2.4GHz 4GB RAM NO HDD

$126.00



HP ProLiant DL360p G8 Server / 2x E5-2620 2.0GHz = 12 Cores / 32GB RAM / 2x PSU picture

HP ProLiant DL360p G8 Server / 2x E5-2620 2.0GHz = 12 Cores / 32GB RAM / 2x PSU

$119.99



Dell PowerEdge R720 2.5

Dell PowerEdge R720 2.5" Server, 2x 2.0GHz 6 Core E5-2620, 32GB, 4x Trays, H710

$269.99



NVIDIA, Tesla S1070  1U/ 4GPU Computing Server. HPC, Accelerator, HIC picture

NVIDIA, Tesla S1070  1U/ 4GPU Computing Server. HPC, Accelerator, HIC

$115.00