diff options
| author | maximilian attems <maks@debian.org> | 2009-04-03 14:58:41 +0200 |
|---|---|---|
| committer | maximilian attems <maks@debian.org> | 2009-04-03 15:00:30 +0200 |
| commit | 41562f3293b34b3d543d6a90f6d4e12264a67022 (patch) | |
| tree | 9aa0137c2a81000ce971f977f5316f14a24edf26 | |
| parent | d703b8ca26ac5230d7ffeae1891334791d8dab31 (diff) | |
| download | initramfs-tools-41562f3293b34b3d543d6a90f6d4e12264a67022.tar.gz initramfs-tools-41562f3293b34b3d543d6a90f6d4e12264a67022.zip | |
update-initramfs: Text exit code of command -v too.
same simplification.
Signed-off-by: maximilian attems <maks@debian.org>
| -rwxr-xr-x | update-initramfs | 4 |
1 files 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}") |
