WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: howto create startup script  (Read 1895 times)

Offline badri.avg

  • Newbie
  • *
  • Posts: 1
howto create startup script
« 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.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: howto create startup script
« Reply #1 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.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11022
Re: howto create startup script
« Reply #2 on: March 05, 2012, 10:24:42 AM »
bmarkus, congrats on your 2500th post :)
The only barriers that can stop you are the ones you create yourself.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: howto create startup script
« Reply #3 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!

:)
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline beerstein

  • Hero Member
  • *****
  • Posts: 530
Re: howto create startup script
« Reply #4 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?
t(w)o be(ers) or not t(w)o be(ers) that is the question

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11502
Re: howto create startup script
« Reply #5 on: March 05, 2012, 08:23:18 PM »
Hi beerstein
Either way will work.