# HG changeset patch # User Stanislas Leduc # Date 1387619996 -3600 # Node ID 9305265ac1513c50832fc43f027151c03ece3447 # Parent 6c04939f80d7bae59bb1bf2a2c154c422f36c95e Fix end of line diff -r 6c04939f80d7 -r 9305265ac151 linux-lxc/receipt --- a/linux-lxc/receipt Sat Dec 21 08:40:56 2013 +0100 +++ b/linux-lxc/receipt Sat Dec 21 10:59:56 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)