From 41562f3293b34b3d543d6a90f6d4e12264a67022 Mon Sep 17 00:00:00 2001 From: maximilian attems Date: Fri, 3 Apr 2009 14:58:41 +0200 Subject: update-initramfs: Text exit code of command -v too. same simplification. Signed-off-by: maximilian attems --- update-initramfs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update-initramfs b/update-initramfs index be0616a..7e5337f 100755 --- a/update-initramfs +++ b/update-initramfs @@ -235,8 +235,8 @@ mbr_check() run_bootloader() { # if both lilo and grub around, figure out if lilo needs to be run - if ( [ -x "$(command -v update-grub)" ] || [ -e /boot/grub/menu.lst ] \ - || [ -e /boot/grub/grub.cfg ] ) \ + if ( command -v update-grub >/dev/null 2>&1 \ + || [ -e /boot/grub/menu.lst ] || [ -e /boot/grub/grub.cfg ] ) \ && ( [ -e /etc/lilo.conf ] && [ -x /sbin/lilo ] ); then [ -r "${KPKGCONF}" ] && \ do_b=$(awk '/^do_bootloader/{print $3}' "${KPKGCONF}") -- cgit v1.2.3