Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started by: equalunique on November 08, 2019, 09:47:28 AM
-
Given a 3rd-party .tcz file on /mnt/sda/tce/optional/, how does one change the init.d scripts in it?
I've found resources on creating new TCZs, but am trying specifically to change one that already exists, and one that I do not have the source code for.
All suggestions welcome!
-
Hi equalunique
First install squashfs-tool.tcz. Then:
unsquashfs /mnt/sda/tce/optional/extension.tcz
You will find the extensions directory tree under /mnt/sda/tce/optional/squashfs-root. Make your changes. Then:
mksquashfs /mnt/sda/tce/optional/squashfs-root /mnt/sda/tce/optional/newname.tcz
rm -rf /mnt/sda/tce/optional/squashfs-root
-
Hi equalunique
First install squashfs-tool.tcz. Then:
unsquashfs /mnt/sda/tce/optional/extension.tcz
You will find the extensions directory tree under /mnt/sda/tce/optional/squashfs-root. Make your changes. Then:
mksquashfs /mnt/sda/tce/optional/squashfs-root /mnt/sda/tce/optional/newname.tcz
rm -rf /mnt/sda/tce/optional/squashfs-root
Thank you so much for this. It worked & I was able to accomplish exactly what I was trying to do.
-
Hi equalunique
You are welcome. Thank you for reporting your success.
-
just to add, run this command:
md5sum {extension-name}.tcz > {extension-name}.tcz.md5.txt
this will generate the propper md5 file otherwise the extension could not be loaded with the app manager
-
Hi julcar
If you are going to modify an existing .tcz , you should delete the .md5.txt file if you don't want the .tcz overwritten during
an update.
If you use Apps->Load App Locally the extenstion will load regardless of whether the md5.txt exists or is correct.
If you use Apps->Cloud(Remote)->Browse to load the extension you have 3 possible outcomes:
1. The .md5.txt file is correct and the extension loads.
2. The .md5.txt file does not exist, the repository is checked for an .md5.txt file and fetched if it exists. If the MD5
matches the extension, it loads. Otherwise it fails to load.
3. The .md5.txt file does not match the extension, so it fails to load.