diff options
author | maximilian attems <maks@debian.org> | 2006-03-15 09:58:00 +0100 |
---|---|---|
committer | maximilian attems <maks@debian.org> | 2006-03-15 09:58:00 +0100 |
commit | b34fe26dd06da3daa40a75a853a96c2013fcfc18 (patch) | |
tree | ff88406872bb3b2972f5ab11ce80ee4c298796ef /update-initramfs | |
parent | 9c42241824afb2759d22d2cf7962fb2ce534e0dd (diff) | |
download | initramfs-tools-b34fe26dd06da3daa40a75a853a96c2013fcfc18.tar.gz initramfs-tools-b34fe26dd06da3daa40a75a853a96c2013fcfc18.zip |
run lilo if no grub is around.
Diffstat (limited to 'update-initramfs')
-rw-r--r-- | update-initramfs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/update-initramfs b/update-initramfs index 2e39ed0..08a2f3a 100644 --- a/update-initramfs +++ b/update-initramfs @@ -67,6 +67,20 @@ generate_initramfs() set_sha1 } +# only run lilo if no grub is around +run_bootloader() +{ + if [ -x /sbin/grub -o -e /boot/grub/menu.lst ]; then + return 0 + fi + if [ -e /etc/lilo.conf ]; then + lilo -t > /dev/null + if [ $? -eq 0 ]; then + lilo + fi + fi +} + compare_sha1() { sha1sum "${initramfs}" | diff "${STATEDIR}/${version}" - >/dev/null 2>&1 @@ -199,6 +213,8 @@ update() generate_initramfs + run_bootloader + } delete() |