add entry in lilo.conf only if needed

This commit is contained in:
Gwenhael Le Moine 2010-11-18 15:48:55 +07:00
parent d0f2da45b2
commit 9940fa4ec1

View file

@ -66,6 +66,7 @@ make modules_install INSTALL_MOD_PATH=$PKG
mkdir -p $PKG/install
cat <<EOF > $PKG/installs/doinst.sh
cp /etc/lilo.conf /etc/lilo.conf.orig
grep -q "image = /boot/$KERNEL_VERSION/bzImage" /etc/lilo.conf && \
cat <<EOLILO >> /etc/lilo.conf
# Linux bootable partition config begins
image = /boot/$KERNEL_VERSION/bzImage