[Splashy-devel] Proof of concept implementation of using
lsb_end_msg
Tim Dijkstra
newsuser at famdijkstra.org
Fri Aug 18 06:35:56 UTC 2006
On Fri, 18 Aug 2006 00:40:41 -0300
Otavio Salvador <otavio at debian.org> wrote:
> Tim Dijkstra <newsuser at famdijkstra.org> writes:
>
> >> That also give time to Luis comment against it.
> >
> > I put it in branches/use-lsb_end_msg see:
> >
> > scripts/etc/lsb-base-logging.sh
> > scripts/update-progess-steps
>
> My current worring is about scripts that doesn't support LSB
> standard. How we'll workaround them?
I wrote a bit about that in the comments in those scripts:
# It's really simple. We just count them and put them
# in alfa-numeric order. Their percentage is then just
# int( their number on the list * ( 100 / total number on list) )
#
# Of course not all packages use log_end_msg yet, but that
# doesn't matter. Splashy will then jump from 7 to 20, 30, 69, etc
# The more scripts start using it, the more granular it will become.
For Example, on my box the list of all scripts in /etc/rc2.d
and /etc/rcS.d is 91 scripts long. The list
in /lib/splashy/progress-list looks like this:
/etc/rcS.d/S01glibc.sh 1
/etc/rcS.d/S01libnss-ldap 2
/etc/rcS.d/S01splashy-init 3
/etc/rcS.d/S02mountkernfs.sh 4
/etc/rcS.d/S03udev 5
/etc/rcS.d/S04mountdevsubfs.sh 6
/etc/rcS.d/S05bootlogd 7
.
.
.
/etc/rc2.d/S99rmnologin 97
/etc/rc2.d/S99stop-bootlogd 98
/etc/rc2.d/S99upwlan 100
But only the following scripts in rc[S2].d have log_end_msg
/etc/rcS.d/S03udev
/etc/rcS.d/S05bootlogd
/etc/rcS.d/S07hdparm
/etc/rcS.d/S40pcmciautils
/etc/rcS.d/S43portmap
/etc/rcS.d/S70x11-common
/etc/rc2.d/S18portmap
/etc/rc2.d/S20dbus
/etc/rc2.d/S20dirmngr
/etc/rc2.d/S21nfs-common
/etc/rc2.d/S89atd
/etc/rc2.d/S89cron
/etc/rc2.d/S99gdm
This means the update process will go like:
5, 7, 9, 35, 41, 51, 61, 64, 68, 87, 93, 94, 95
So the bar will be updated 13 times. But the more scripts start using
it, the better it looks.
grts Tim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/splashy-devel/attachments/20060818/401ec95e/signature.pgp
More information about the Splashy-devel
mailing list