Hello,
We are trying to make an application now for our product. I would like to have the software automatically launch into my "program" as soon as the board is fully booted.
I am new to linux and I do not understand how to do this.
1) Right now, you have to press 'enter' to get to a prompt
2) run the application by typing it in.
I would like the system just to jump to my program...for now I'm just using 'hello'.
Thanks!
Tim Liebau
Hi,
You can add a script at /etc/init,d/ for starting your app. You can add that script to your app directory then you can add a command in the app Makefile to install that script in the target file system.
-- Miguel AguilarEmbedded Software EngineerRidgeRun Embedded Solutions
Miguel Aguilar Hi, You can add a script at /etc/init,d/ for starting your app. You can add that script to your app directory then you can add a command in the app Makefile to install that script in the target file system.
Great!
And how do you run a Shell script (demo.sh for example) on boot? I put mine in the /etc/init.d folder but it did not work...
Thanks,
Mike
Any idea about how to run a shell script (like demo.sh) at start-up?
Look at /etc/init.d entires. You can add a file there, and a symbolic link from /etc/rc.d.
Search the Internet for /etc/init.d for an explanation.
Did you get it working Gentlemich?
This is what I tried but it does not work.
_________
//demo.sh
cd ..
cd examples
./cam
________
Pasted this file into /etc/init.d and added a symbolic link by typing the following commands:
chmod +x /etc/init.d/demo.sh
ln /etc/init.d/demo.sh /etc/rc.d/demo.sh
At this stage I can go to either /etc/init.d or /etc/rc.d and run demo.sh and it works.
But it does not run at startup.
Any ideas?
Just call the shell file in the rc.d directory S98Demo.sh for example and it should work...
If you follow the S numbering in that folder it should be fine.