WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: not used functions from tc-functions  (Read 148 times)

Offline nick65go

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 980
not used functions from tc-functions
« 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.
« Last Edit: March 13, 2026, 07:00:17 PM by nick65go »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 12645
Re: not used functions from tc-functions
« Reply #1 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.

Offline nick65go

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 980
Re: not used functions from tc-functions
« Reply #2 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