wok-current rev 12291

linux: fix adding entry in grub menu.lst
author Christophe Lincoln <pankso@slitaz.org>
date Sun Apr 15 20:53:12 2012 +0200 (2012-04-15)
parents 34cbbdb49f40
children 31722f4be932
files linux/receipt
line diff
     1.1 --- a/linux/receipt	Sun Apr 15 20:48:17 2012 +0200
     1.2 +++ b/linux/receipt	Sun Apr 15 20:53:12 2012 +0200
     1.3 @@ -250,7 +250,7 @@
     1.4      	root_dev=`cat $1/boot/grub/menu.lst | grep root= | sed 's/.*root=\([^ ]*\).*/\1/' | head -n 1`
     1.5  		grub_dev=`cat $1/boot/grub/menu.lst | grep "root (" | head -n 1`
     1.6  		# Add new kernel entry in case of upgrade for installed system.
     1.7 -		if ! grep -q $PACKAGE-$VERSION-slitaz $1/boot/grub/menu.lst; then
     1.8 +		if ! grep -q vmlinuz-$VERSION-slitaz $1/boot/grub/menu.lst; then
     1.9      		cat >> $1/boot/grub/menu.lst << EOT
    1.10  
    1.11  title SliTaz GNU/Linux (Kernel $VERSION-slitaz)