Tiny Core Linux

Tiny Core Base => TCB Bugs => Topic started by: nick65go on March 13, 2026, 06:58:29 PM

Title: not used functions from tc-functions
Post by: nick65go on March 13, 2026, 06:58:29 PM
in TC17 32 bits, from rootfs.gz, in /etc/init.d/tc-functions:
the functions merge(), replace(), purge() use the commands index() and getline. but I think they are not functional because they are not internal into ash, neither applets from busybox. Also /bin/which did not find them.
I tested by: I booted in GUI from qemu, and opened aterm then sourced /etc/init.d/tc-functions.
Title: Re: not used functions from tc-functions
Post by: Rich on March 13, 2026, 08:37:10 PM
Hi nick65go
The functions merge(), replace(), and purge() are all using awk.
index  and  getline  are both awk functions.
Title: Re: not used functions from tc-functions
Post by: nick65go on March 14, 2026, 01:57:34 PM
@Rich: thank you, my mistake, I was superficial and tired.
FYi:  I was "working" to make TC17-32 to boot in less than 45 MB RAM, so I scanned for functions and binary to load on demand. I succeed to run it in qemu with 41MB RAM .. and still try lowering the demands WITHOUT eliminating ANY original program, but just load some of them with delay (on-demand), from the same storage as vmlinuz+core.gz

If you are interested the link is here (with info updated)
https://forum.tinycorelinux.net/index.php/topic,28067.msg181745.html#msg181745 (https://forum.tinycorelinux.net/index.php/topic,28067.msg181745.html#msg181745)