Tiny Core Linux
Tiny Core Base => Raspberry Pi => Topic started by: lykkedk on November 16, 2014, 05:22:47 AM
-
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.
-
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
-
Thanks...
Have seen that, could not understand completely though...
Having another issue now :)
Will write later, have to go for some birthday now...
Regards;