BootProgressFunction parameters

David D Lowe daviddlowe.flimm at gmail.com
Fri Jun 4 09:22:55 PDT 2010


Hello all.

on this wiki page:
http://www.freedesktop.org/wiki/Software/Plymouth/Scripts
the arguments for a BootProgressFunction should be progress, time.

However, when I experimented with Plymouth scripts, I found that in fact 
it is the opposite way round. It's time, progress.

For example:
# this code works
fun progress_callback(time, progress)
{
   progress_status = "We have waited " + time + " seconds and we are " + 
(progress * 100) + " % done";
   // ...
}
Plymouth.SetBootProgressFunction(progress_callback);

Am I right?
Yours,
David D Lowe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/plymouth/attachments/20100604/824e5b57/attachment.html>


More information about the plymouth mailing list