WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Autoexecute schript(.sh) on tce-load -i scriptname.tcz - POSSIBLE ?  (Read 1993 times)

Offline lykkedk

  • Full Member
  • ***
  • Posts: 182
Hi forum...

Eventhrough i do not think it, as a possibility, i would like to know, if it's possible to Autoexecute schript(.sh) on tce-load -i scriptname.tcz ?

I need a special .tcz to create some files/directorys in /mnt/mmcblk0p2, and then execute some chmod / chown commands, afterwards.
My solution is, to just execute a script, which is packaged in the .tcz too, but wunder if an autoexecute is possible somehow ???

Regards;
   Jesper.



Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Autoexecute schript(.sh) on tce-load -i scriptname.tcz - POSSIBLE ?
« Reply #1 on: November 16, 2014, 06:12:59 AM »
Shell script /usr/local/tce.installed/<script> will be executed automatically, it is a standard TC feature. Script name must be the same as TCZ name without file name extension. E.g. if it is in myapp.tcz it must be /usr/local/tce.installed/myapp

tce.installed dir and tce.installed/myapp must be owned by root.staff with 775 rights.

BTW, it is in the Core Book
Béla
Ham Radio callsign: HA5DI

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

Offline lykkedk

  • Full Member
  • ***
  • Posts: 182
Re: Autoexecute schript(.sh) on tce-load -i scriptname.tcz - POSSIBLE ?
« Reply #2 on: November 16, 2014, 06:33:25 AM »
Thanks...

Have seen that, could not understand completely though...

Having another issue now :)

Will write later, have to go for some birthday now...

Regards;