# HG changeset patch # User Pascal Bellard # Date 1204373475 0 # Node ID 15b59bbf70c4a47d6acc87021d65395efb553a2c # Parent 439cb0a8e2d0c0c83c96bdb98d6a1c52bd17546b Log boot into /var/log/boot.log using script and vcsa2txt diff -r 439cb0a8e2d0 -r 15b59bbf70c4 etc/init.d/rcS --- a/etc/init.d/rcS Mon Feb 25 21:59:53 2008 +0000 +++ b/etc/init.d/rcS Sat Mar 01 12:11:15 2008 +0000 @@ -8,6 +8,8 @@ . /etc/init.d/rc.functions . /etc/rcS.conf +if [ "$1" != "logged" ]; then #logged + # Start by sleeping a bit. echo "Processing /etc/init.d/rcS... " sleep 1 @@ -48,6 +50,12 @@ echo "/sbin/udevd" > /proc/sys/kernel/hotplug fi +/bin/dmesg > /var/log/dmesg.log +/usr/bin/vcsa2txt < /dev/vcsa1 > /var/log/boot.log +/usr/bin/script -a -q -c '/etc/init.d/rcS logged' /var/log/boot.log + +else #logged + # Creat /dev/cdrom if needed (symlink does not exist on LiveCD). Chmod # hack for Asunder and burnbox allowing all users to burn/rip CD/DVD. # Add also /dev/cdrom to fstab if entry dos not exist. @@ -158,3 +166,4 @@ echo -e "\033[1m$MESSAGE\033[0m" fi +fi #logged