Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: badri.avg on March 05, 2012, 03:04:18 AM

Title: howto create startup script
Post by: badri.avg on March 05, 2012, 03:04:18 AM
Hi,

I am very much new to TCL. I have the following situation.

I want to run a shell script everytime the TCL boots. Can somebody help how to do that..? The script is very simple. Might have 2-3 lines of code. Do I need to create an extension and make it onboot or is there any other easier way to do the same.
Title: Re: howto create startup script
Post by: bmarkus on March 05, 2012, 03:08:26 AM
Just add your code to /opt/bootlocal.sh

P.S: Please do not doublepost. Your other thread is deleted.
Title: Re: howto create startup script
Post by: curaga on March 05, 2012, 10:24:42 AM
bmarkus, congrats on your 2500th post :)
Title: Re: howto create startup script
Post by: bmarkus on March 05, 2012, 10:27:26 AM
bmarkus, congrats on your 2500th post :)

Huh.... Nice number. Don't tell my why I'm posting here instead repairing water pipe in the kitchen.

Thanks!

:)
Title: Re: howto create startup script
Post by: beerstein on March 05, 2012, 04:39:47 PM
Just add your code to /opt/bootlocal.sh

am I correct - the code, not the file name and location of the script?
Title: Re: howto create startup script
Post by: Rich on March 05, 2012, 08:23:18 PM
Hi beerstein
Either way will work.