2010-01-01

Slitaz -- bootlog



root@slitaz:~# uname -a
Linux slitaz 2.6.30.6-slitaz #1 SMP Mon Nov 30 14:16:13 CET 2009 i686 unknown
root@slitaz:~# cat /var/log/boot.log | sed "s/.\[3g.*\]R//" | tail
Restoring last alsa configuration... [ OK ]
Starting local startup commands...
Starting all daemons specified in /etc/rcS.conf...
Starting message bus daemon: DBUS... [ OK ]
Starting Hardware Abstraction Layer: HAL... [ OK ]
Setting up kernel security rules... [ OK ]
Iptables rules are disabled in: /etc/firewall.conf...
Starting slim login manager: Slim... [ OK ]
Welcome to your box.
SliTaz boot time: 6s
root@slitaz:~#

----
http://hg.slitaz.org/slitaz-boot-scripts/rev/c9296cbaaafa
slitaz-boot-scripts
changeset 187:c9296cbaaafa
rcS: log execution time for slitaz boot scripts
author Christophe Lincoln
date Tue Dec 22 12:10:13 2009 +0100 (2 months ago)
parents c9e9d25f04a3
children 7512d6d48538
files etc/init.d/rcS
line diff

1.1 --- a/etc/init.d/rcS Tue Dec 22 12:07:43 2009 +0100
1.2 +++ b/etc/init.d/rcS Tue Dec 22 12:10:13 2009 +0100
1.3 @@ -8,6 +8,9 @@
1.4 . /etc/init.d/rc.functions
1.5 . /etc/rcS.conf
1.6
1.7 +# Boot time.
1.8 +bootdate=`date +%s`
1.9 +
1.10 if [ "$1" != "logged" ]; then # logged
1.11
1.12 echo "Processing /etc/init.d/rcS..."
1.13 @@ -244,4 +247,9 @@
1.14 echo -e "\033[1m$MESSAGE\033[0m"
1.15 fi
1.16
1.17 +# Display and log boot time.
1.18 +time=$((`date +%s` - $bootdate))
1.19 +echo $time > /var/log/boot-time
1.20 +echo "SliTaz boot time: ${time}s"
1.21 +
1.22 fi # logged

.