wok-current diff bootchart/receipt @ rev 6868
Added gst-plugins-base to gst-plugins-base-dev depends.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed Oct 20 20:03:50 2010 +0000 (2010-10-20) |
parents | 1f027408aeca |
children | a7b54d88ae54 |
line diff
1.1 --- a/bootchart/receipt Thu Mar 04 11:38:39 2010 +0000 1.2 +++ b/bootchart/receipt Wed Oct 20 20:03:50 2010 +0000 1.3 @@ -27,12 +27,13 @@ 1.4 1.5 post_install() 1.6 { 1.7 - KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` 1.8 + KERNEL_VERSION=`uname -a | cut -d ' ' -f3 | cut -d '-' -f1` 1.9 if [ -f "$1/boot/grub/menu.lst" ]; then 1.10 - if ! grep -q "vmlinuz-$KERNEL_VERSION-slitaz" $1/boot/grub/menu.lst; then 1.11 + # add an entry only if slitaz is installed and bootchart is not configured 1.12 + if ! grep -q "vmlinuz-$KERNEL_VERSION-slitaz.*sbin/bootchartd.*" $1/boot/grub/menu.lst; then 1.13 root_dev=`cat $1/boot/grub/menu.lst | grep root= | sed 's/.*root=\([^ ]*\).*/\1/' | head -n 1` 1.14 grub_dev=`cat $1/boot/grub/menu.lst | grep "root.* (" | head -n 1` 1.15 - # Add new kernel entry in case of upgrade for installed system. 1.16 + # Add new kernel entry for bootchart 1.17 cat >> $1/boot/grub/menu.lst << EOT 1.18 1.19 title SliTaz GNU/Linux (Kernel $KERNEL_VERSION-slitaz) with bootchart