# HG changeset patch # User Stanislas Leduc # Date 1387619985 -3600 # Node ID ab5539bc9d8a22c3bfe8b767e223cbdc5ea57ed9 # Parent dfde943f9e2280f410afe919188805091a3956a0 Fix end of line diff -r dfde943f9e22 -r ab5539bc9d8a linux-lxc/receipt --- a/linux-lxc/receipt Sat Dec 21 10:47:34 2013 +0100 +++ b/linux-lxc/receipt Sat Dec 21 10:59:45 2013 +0100 @@ -31,13 +31,10 @@ chroot "$1/" depmod -a $VERSION-lxc-slitaz # GRUB stuff. if [ -f "$1/boot/grub/menu.lst" ]; then - root_dev=`cat $1/boot/grub/menu.lst | grep root= | sed 's/.*root=\([^ -]*\).*/\1/' | head -n 1` - grub_dev=`cat $1/boot/grub/menu.lst | grep "root (" | head -n -1` + root_dev=`cat $1/boot/grub/menu.lst | grep root= | sed 's/.*root=\([^ ]*\).*/\1/' | head -n 1` + grub_dev=`cat $1/boot/grub/menu.lst | grep "root (" | head -n 1` # Add new kernel entry in case of upgrade for installed system. - if ! grep -q $PACKAGE-$VERSION-lxc-slitaz $1/boot/grub/menu.lst; -then + if ! grep -q $PACKAGE-$VERSION-lxc-slitaz $1/boot/grub/menu.lst; then cat >> $1/boot/grub/menu.lst << EOT title SliTaz GNU/Linux (Kernel $VERSION-lxc-slitaz)