slitaz-boot-scripts rev 212

/etc/init.d/rcS: avoid empty lines in boot.log
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jun 25 16:30:45 2010 +0200 (2010-06-25)
parents 98de454a7e21
children 50b48a25519f
files etc/init.d/rcS
line diff
     1.1 --- a/etc/init.d/rcS	Wed Jun 23 22:03:49 2010 +0200
     1.2 +++ b/etc/init.d/rcS	Fri Jun 25 16:30:45 2010 +0200
     1.3 @@ -75,7 +75,7 @@
     1.4  
     1.5  # Store boot messages to log files.
     1.6  /bin/dmesg > /var/log/dmesg.log &
     1.7 -conspy -d 1 | awk 'BEGIN {s=0} /^Processing|^.witching/ {s=1} { if (s) print }' >/var/log/boot.log
     1.8 +conspy -d 1 | sed -e 's/ *$//' -e '/^$/d' -e '/^Processing\|^.witching/,$!d' >/var/log/boot.log
     1.9  script -a -q -c '/etc/init.d/rcS logged' /var/log/boot.log
    1.10  
    1.11  else # logged