mirror of
https://github.com/rworkman/slackpkg
synced 2025-01-13 20:03:38 +01:00
post-functions.sh: check for /etc/lilo.conf too for lilo offer
Existence of /etc/lilo.conf coupled with executable /sbin/lilo probably indicates lilo usage on the system, so that seems like a reasonable compromise for everyone fussing about slackpkg's offer to run /sbin/lilo for them after kernel upgrades even though they use grub or whatever else.
This commit is contained in:
parent
b5309a3b26
commit
8c6d8b9947
1 changed files with 4 additions and 4 deletions
|
@ -218,7 +218,7 @@ What do you want (K/O/R/P)?"
|
||||||
lookkernel() {
|
lookkernel() {
|
||||||
NEWKERNELMD5=$(md5sum /boot/vmlinuz 2>/dev/null)
|
NEWKERNELMD5=$(md5sum /boot/vmlinuz 2>/dev/null)
|
||||||
if [ "$KERNELMD5" != "$NEWKERNELMD5" ]; then
|
if [ "$KERNELMD5" != "$NEWKERNELMD5" ]; then
|
||||||
if [ -x /sbin/lilo ]; then
|
if [ -x /sbin/lilo ] && [ -r /etc/lilo.conf ]; then
|
||||||
echo -e "\n
|
echo -e "\n
|
||||||
Your kernel image was updated. We highly recommend you run: lilo
|
Your kernel image was updated. We highly recommend you run: lilo
|
||||||
Do you want slackpkg to run lilo now? (Y/n)"
|
Do you want slackpkg to run lilo now? (Y/n)"
|
||||||
|
@ -228,9 +228,9 @@ Do you want slackpkg to run lilo now? (Y/n)"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo -e "\n
|
echo -e "\n
|
||||||
Your kernel image was updated and lilo is not found on your system.
|
Your kernel image was updated, and lilo does not appear to be used on
|
||||||
You may need to adjust your boot manager (like GRUB) to boot appropriate
|
your system. You may need to adjust your boot manager (like GRUB) to
|
||||||
kernel."
|
boot the appropriate kernel."
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue