Navigation

    Recalbox Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • recalbox.com
    • Gitlab repository
    • Documentation
    • Discord

    UNSOLVED Startup script not running after following wiki

    Recalbox General
    startup script running following wiki
    3
    4
    1270
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Tolley
      Tolley last edited by

      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

      Substring 1 Reply Last reply Reply Quote 0
      • Substring
        Substring @Tolley last edited by

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

        Former dev - Please reply with @substring so that i am notified when you answer me
        Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

        1 Reply Last reply Reply Quote 0
        • Tolley
          Tolley last edited by Tolley

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

          OyyoDams 1 Reply Last reply Reply Quote 0
          • OyyoDams
            OyyoDams Staff
            Developer
            Global moderator
            Team
            @Tolley
            last edited by

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

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            Want to support us ?

            74
            Online

            88.3k
            Users

            26.2k
            Topics

            179.8k
            Posts

            Copyright © 2021 recalbox.com