Startup script not running after following wiki



  • I followed the guide from the wiki https://github.com/recalbox/recalbox-os/wiki/Add-your-own-startup-script-(EN) and my script doesn't run on boot. I placed it in /etc.init.d/ and named it S97osmc.sh. It mounts a partition then copys a file called osmc.txt to the mounted partition and then renames autoboot.txt. I am running OSMC, Raspbian and Recalbox in noobs multiboot. I am using a raspberry pi 3 and my recalbox verson is 18.02.09 (according to system settings)

    S97osmc.sh:

    #!/bin/bash
    
    cd ~
    echo 'Attempting Mount'
    mount /dev/mmcblk0p1 ~/temp
    echo 'Attempted Mount'
    echo 'Copying osmc.txt'
    cp /etc/init.d/osmc.txt ~/temp/autoboot.txt
    echo 'Copyed osmc.txt'
    echo 'Done!'
    

    osmc.txt:

    boot_partition=8
    

    Thanks in advance for any help


  • Moderator
    Team

    @tolley does it run whe' you start it manually ? Have you chmodded it the right way ? Does ~/temp exist ?



  • @Substring Oops totally forgot about chmod, temp does exist and when i run it manually it works. After chmodding it still doesn't work.


  • Moderator
    Moderator
    Team

    @tolley Try to put the full temp path instead of ~/temp



Want to support us ?

Join us on :

793
Online

28242
Users

14448
Topics

109334
Posts

Looks like your connection to Recalbox Forum was lost, please wait while we try to reconnect.