[Splashy-devel] splashy-init in route to breakage
Luis M
lemsx1 at gmail.com
Mon Mar 6 22:08:11 UTC 2006
On 3/6/06, Pat Suwalski <pats at xandros.com> wrote:
> Luis M wrote:
> > * splashy keeps track of the total (sum) of the progressbar (0-100)
> > * splashy uses a thread to handle the progressbar independently of the
> > fifo thread (main thread) or the keyboard event thread
> > * all the goodies are handled by splashy_functions.c, splashy_video.c
> > should be just a dump way to draw things on the screen (API-like)
> > * splashy-init should then send the same number (percentage) to
> > splashy for e/a script that is running: progress 2; progress 2; ... if
> > 100/N_scripts_or_progress_ran_at_boot = 2. splashy will take care of
> > keeping a cummulative count of the progressbar
>
> So, I'm a little out of the loop here: is this a drop-in replacement
> binary for regular sysvinit?
No, splashy-init is the name of the initrc script that calculates how
many things will be done at boot, and updates the splashy progressbar
accordingly.
Before we used to do that with many "break" points during boot,
essentially scripts named:
/etc/rcS.d/S20splashy20 ... /etc/rc2.d/S99splashy99...
Which was very dumb and required a ton of scripts ;-)
Jacobo re-wrote the whole thing into a single script, splashy-init,
that acts like a "daemon" (kinda). And it does a lot of beautiful
things to calculate the progress as well as to detect what scripts
have ran and which ones are about to be ran... etc...
I broke the idea behind that script by allowing splashy to keep track
of it's own total percentage. Now we can update the progressbar of
splashy at the initramfs level (we need to figure out how) and keep
going once init gets called by the kernel.
Still more ideas to implement...
--
----)(-----
Luis Mondesi
System Administrator
Kiskeyix.org
"We think basically you watch television to turn your brain off, and
you work on your computer when you want to turn your brain on" --
Steve Jobs in an interview for MacWorld Magazine 2004-Feb
No .doc: http://www.gnu.org/philosophy/no-word-attachments.es.html
More information about the Splashy-devel
mailing list