pavel-demin / red-pitaya-notes

Notes on the Red Pitaya Open Source Instrument
http://pavel-demin.github.io/red-pitaya-notes/
MIT License
337 stars 209 forks source link

documentation/startup script under Alpine #595

Closed F6ITU closed 7 years ago

F6ITU commented 7 years ago

Hi On three different config and 2 different places (2 different red pitaya), as instructed at http://pavel-demin.github.io/red-pitaya-notes/alpine/ a copy of the "*start.sh" file of any kind of image on the " topmost directory on the SD card" (when creating the image) doesn't start anything

could it be possible to change the "Getting start" instructions

"Optionally, to start one of the applications automatically at boot time, copy its start.sh file from apps/ to the topmost directory on the SD card."

into

Optionally, to start one of the applications automatically at boot time, copy its start.sh file from apps/ to the /etc/local.d/ directory on the SD card.

(just a suggestion, it's probably a pebcak problem from my side, but the suggested path cannot work under Alpine Linux )

MArc

pavel-demin commented 7 years ago

Hi Marc,

Actually, copying start.sh file to the topmost directory on the SD card works. Here is a video showing what and where should be copied:

https://www.youtube.com/watch?v=8piEybrHvWU&t=140

The problem with /etc/local.d/ that it doesn't exist on the SD card. /etc/local.d/ is inside red-pitaya.apkovl.tar.gz. Editing red-pitaya.apkovl.tar.gz is less trivial than just copying one file.

Best regards,

Pavel

pavel-demin commented 7 years ago

BTW. There is already a script in /etc/local.d/ that executes start.sh from the topmost directory on the SD card. Here is a link to the script: https://github.com/pavel-demin/red-pitaya-notes/blob/master/alpine/etc/local.d/apps.start

So, nothing should be added to /etc/local.d/.

davidhay45 commented 2 years ago

I had a similar problem and found that the /etc/local.d/apps.start file needed to have execute permissions. However, this problem only occurred on the 20220322 alpine sd card image file.