Tiny Core Linux

General TC => General TC Talk => Topic started by: SunBurnt on August 07, 2011, 06:43:46 PM

Title: Where is script that extracts mydata.tgz?
Post by: SunBurnt on August 07, 2011, 06: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?
Title: Re: Where is script that extracts mydata.tgz?
Post by: Rich on August 07, 2011, 06:49:08 PM
Hi SunBurnt
Look in  /etc/init.d/tc-config  and  tc-functions.
Title: Re: Where is script that extracts mydata.tgz?
Post by: hiro on August 07, 2011, 06:52:45 PM
IIRC /init > /sbin/init > /etc/inittab (sysinit:/etc/init.d/rcS) > /etc/init.d/tc-config

Have fun :)

//corrected
Title: Re: Where is script that extracts mydata.tgz?
Post by: Rich on August 07, 2011, 06:57:52 PM
And  /etc/init.d/rcS  is a link that points to  /etc/init.d/tc-config
Title: Re: Where is script that extracts mydata.tgz?
Post by: SunBurnt on August 07, 2011, 07: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!
Title: Re: Where is script that extracts mydata.tgz?
Post by: Rich on August 07, 2011, 07: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.
Title: Re: Where is script that extracts mydata.tgz?
Post by: SunBurnt on August 07, 2011, 07: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