slitaz-boot-scripts rev 41

Log boot into /var/log/boot.log using script and vcsa2txt
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Mar 01 12:11:15 2008 +0000 (2008-03-01)
parents 439cb0a8e2d0
children 3da6316620ef
files etc/init.d/rcS
line diff
     1.1 --- a/etc/init.d/rcS	Mon Feb 25 21:59:53 2008 +0000
     1.2 +++ b/etc/init.d/rcS	Sat Mar 01 12:11:15 2008 +0000
     1.3 @@ -8,6 +8,8 @@
     1.4  . /etc/init.d/rc.functions
     1.5  . /etc/rcS.conf
     1.6  
     1.7 +if [ "$1" != "logged" ]; then #logged
     1.8 +
     1.9  # Start by sleeping a bit.
    1.10  echo "Processing /etc/init.d/rcS... "
    1.11  sleep 1
    1.12 @@ -48,6 +50,12 @@
    1.13  	echo "/sbin/udevd" > /proc/sys/kernel/hotplug
    1.14  fi
    1.15  
    1.16 +/bin/dmesg > /var/log/dmesg.log
    1.17 +/usr/bin/vcsa2txt < /dev/vcsa1 > /var/log/boot.log
    1.18 +/usr/bin/script -a -q -c '/etc/init.d/rcS logged' /var/log/boot.log
    1.19 +
    1.20 +else #logged
    1.21 +
    1.22  # Creat /dev/cdrom if needed (symlink does not exist on LiveCD). Chmod
    1.23  # hack for Asunder and burnbox allowing all users to burn/rip CD/DVD.
    1.24  # Add also /dev/cdrom to fstab if entry dos not exist.
    1.25 @@ -158,3 +166,4 @@
    1.26  	echo -e "\033[1m$MESSAGE\033[0m"
    1.27  fi
    1.28  
    1.29 +fi #logged