WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Where is script that extracts mydata.tgz?  (Read 2232 times)

Offline SunBurnt

  • Full Member
  • ***
  • Posts: 102
Where is script that extracts mydata.tgz?
« on: August 07, 2011, 03:43:46 PM »
TC`s init file has almost no code in it, where is the real work being done?

It seems that it must be inside the kernel?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: Where is script that extracts mydata.tgz?
« Reply #1 on: August 07, 2011, 03:49:08 PM »
Hi SunBurnt
Look in  /etc/init.d/tc-config  and  tc-functions.

Offline hiro

  • Hero Member
  • *****
  • Posts: 1217
Re: Where is script that extracts mydata.tgz?
« Reply #2 on: August 07, 2011, 03:52:45 PM »
IIRC /init > /sbin/init > /etc/inittab (sysinit:/etc/init.d/rcS) > /etc/init.d/tc-config

Have fun :)

//corrected
« Last Edit: August 07, 2011, 04:12:07 PM by hiro »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: Where is script that extracts mydata.tgz?
« Reply #3 on: August 07, 2011, 03:57:52 PM »
And  /etc/init.d/rcS  is a link that points to  /etc/init.d/tc-config

Offline SunBurnt

  • Full Member
  • ***
  • Posts: 102
Re: Where is script that extracts mydata.tgz?
« Reply #4 on: August 07, 2011, 04:16:22 PM »
/sbin/init is a link pointing to BusyBox, so then BusyBox runs /etc/init.d/rcS ?

Very good guys, many thanks for the important info!

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: Where is script that extracts mydata.tgz?
« Reply #5 on: August 07, 2011, 04:25:27 PM »
Hi SunBurnt
Init  is a function provided by busybox, it reads  /etc/inittab  to find out where the start up script is.

Offline SunBurnt

  • Full Member
  • ***
  • Posts: 102
Re: Where is script that extracts mydata.tgz?
« Reply #6 on: August 07, 2011, 04:32:58 PM »
Yep... And the first line of inittab calls /etc/init.d/rcS , I`ve looked at inittab files before.
I still don`t understand how it does what it`s doing, but I do see what`s being done.

Thanks Rich and hiro... Terry