Tiny Core Linux
Tiny Core Extensions => TCE Talk => Topic started by: frimical on October 12, 2010, 05:29:30 AM
-
please, can someone tell me how to create a metaextension ?( which I understand is not a normal one)
thnx
-
create an empty file and add to dep list whatever you want
forexample
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
if you are going to submit it to the official repository
cd myext
find usr -not -type d > ../myext.tcz.list
md5sum myext.tcz > myext.tcz.md5.txt
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 (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://wiki.tinycorelinux.com/Creating+Extensions)
http://forum.tinycorelinux.net/index.php?topic=330.0 (http://forum.tinycorelinux.net/index.php?topic=330.0)
-
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
-
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
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
sudo chmod -R 775 myext/usr/local/tce.installed
sudo chown -R root.staff myext/usr/local/tce.installed
you can find most of the information in the related wiki page already
-
thank you again, it was bright clear. I will add your explanations to the wiki page.