mirror of
https://github.com/rworkman/slackpkg
synced 2024-12-25 21:58:42 +01:00
Prevent grep from matching comment in /etc/lilo.conf
This commit is contained in:
parent
372a416c22
commit
f9fcff5b25
1 changed files with 1 additions and 1 deletions
|
@ -326,7 +326,7 @@ for you to deal with later"
|
|||
lookkernel() {
|
||||
NEWKERNELMD5=$(md5sum /boot/vmlinuz 2>/dev/null)
|
||||
if [ "$KERNELMD5" != "$NEWKERNELMD5" ]; then
|
||||
if [ -x /sbin/lilo ] && [ -r /etc/lilo.conf ] && grep -q initrd /etc/lilo.conf ; then
|
||||
if [ -x /sbin/lilo ] && [ -r /etc/lilo.conf ] && grep -q '^[[:space:]]*initrd=' /etc/lilo.conf ; then
|
||||
echo -e "\n
|
||||
Your kernel image was updated, and your /etc/lilo.conf indicates
|
||||
the use of an initrd for at least one of your kernels. Be sure to
|
||||
|
|
Loading…
Reference in a new issue