WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline nick65go

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1030
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: 12920
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: 1030
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

Offline StelaHong

  • Newbie
  • *
  • Posts: 4
Re: not used functions from tc-functions
« Reply #3 on: July 20, 2026, 08:49:55 AM »
I'd also suggest trying the same steps on a fresh boot with only the required extensions loaded. That can help rule out conflicts and makes it much easier to see whether the issue is with the configuration or an extension that's being pulled in later.