Tiny Core Extensions > TCE Talk
[metaextensions] how to create them?
(1/1)
frimical:
please, can someone tell me how to create a metaextension ?( which I understand is not a normal one)
thnx
Arslan S.:
create an empty file and add to dep list whatever you want
forexample
--- Code: ---mkdir -p myext/usr/local/share/myext
echo "This is a meta extension" > myext/usr/local/share/myext/readme
mksquashfs myext myext.tcz
echo "dep1.tcz" >> myext.tcz.dep
echo "dep2.tcz" >> myext.tcz.dep
--- End code ---
if you are going to submit it to the official repository
--- Code: ---cd myext
find usr -not -type d > ../myext.tcz.list
md5sum myext.tcz > myext.tcz.md5.txt
--- End code ---
and you need to prepare an info file (myext.tcz.info)
take one sample from http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/tcz_3x.html
see for related wiki page and official guide for details
http://wiki.tinycorelinux.com/Creating+Extensions
http://forum.tinycorelinux.net/index.php?topic=330.0
frimical:
thank you very much for your quick'n'neat answer, it worth being added to the wiki. Do you mind if I do so?
(by the way I was a little confused on the wiki page because it was talking about 'tce' extension not 'tcz').
One more question:
Can we add a startup script?
thnx
Arslan S.:
--- Quote from: frimical on October 13, 2010, 01:07:56 AM ---thank you very much for your quick'n'neat answer, it worth being added to the wiki. Do you mind if I do so?
(by the way I was a little confused on the wiki page because it was talking about 'tce' extension not 'tcz').
One more question:
Can we add a startup script?
thnx
--- End quote ---
this is open project so anyone can contribute as long as you strict with community conventions and rules
yes there is tce.installed script that is run just after the extension is loaded
put your commands to myext/usr/local/tce.installed/myext (script name must be the same with extension name)
then adjust permissions of both tce.installed directory and tce.installed script to 775 and ownership to root.staff
--- Code: ---sudo chmod -R 775 myext/usr/local/tce.installed
sudo chown -R root.staff myext/usr/local/tce.installed
--- End code ---
you can find most of the information in the related wiki page already
frimical:
thank you again, it was bright clear. I will add your explanations to the wiki page.
Navigation
[0] Message Index
Go to full version