Unsolved 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)
#!/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
-
@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.
-
@tolley Try to put the full
temp
path instead of~/temp