From 640a5407919ee1eef9d202b21c845553cc8e2bc8 Mon Sep 17 00:00:00 2001 From: freesource Date: Wed, 24 Oct 2001 16:36:37 +0000 Subject: [PATCH] Checks for file and ash now too. --- gbootroot | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/gbootroot b/gbootroot index c7b6512..e52e028 100755 --- a/gbootroot +++ b/gbootroot @@ -2817,7 +2817,7 @@ sub stripper { sub two_disk_compression_check { - my ($ash,$lilo); + my ($ash,$lilo,$bzip2,$file); if ( !find_file_in_path("ash") ) { $ash = "ash"; @@ -2827,16 +2827,26 @@ sub two_disk_compression_check { $lilo = "lilo"; } + if ( !find_file_in_path("bzip2") ) { + $bzip2 = "bzip2"; + } + + if ( !find_file_in_path("file") ) { + $file = "file"; + } + if ( $ash || $lilo || - ($ash && $lilo) + $bzip2 || + + $ash ) { error_window( - "Program(s) required by this method: $lilo $ash" + "Program(s) required by this method: $lilo $ash $bzip2 $file" ); return 1;