run a C script at startup [Red Pitaya] : I have a #C script that needs to run when I turn on my machine (Red Pitaya). the script is executable with a run.sh file, both of them are located in a directory under /root. the script is working perfectly when run manually. I tried to follow the solution presented here : 

https://askubuntu.com/questions/9853/how-can-i-make-rc-local-run-on-startup

without success. 
any suggestions? Thank you.
