mirror of
https://github.com/fspc/gbootroot.git
synced 2025-02-23 09:03:23 -05:00
Checks for file and ash now too.
This commit is contained in:
parent
d451183160
commit
640a540791
16
gbootroot
16
gbootroot
@ -2817,7 +2817,7 @@ sub stripper {
|
|||||||
|
|
||||||
sub two_disk_compression_check {
|
sub two_disk_compression_check {
|
||||||
|
|
||||||
my ($ash,$lilo);
|
my ($ash,$lilo,$bzip2,$file);
|
||||||
|
|
||||||
if ( !find_file_in_path("ash") ) {
|
if ( !find_file_in_path("ash") ) {
|
||||||
$ash = "ash";
|
$ash = "ash";
|
||||||
@ -2827,16 +2827,26 @@ sub two_disk_compression_check {
|
|||||||
$lilo = "lilo";
|
$lilo = "lilo";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( !find_file_in_path("bzip2") ) {
|
||||||
|
$bzip2 = "bzip2";
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( !find_file_in_path("file") ) {
|
||||||
|
$file = "file";
|
||||||
|
}
|
||||||
|
|
||||||
if ( $ash ||
|
if ( $ash ||
|
||||||
|
|
||||||
$lilo ||
|
$lilo ||
|
||||||
|
|
||||||
($ash && $lilo)
|
$bzip2 ||
|
||||||
|
|
||||||
|
$ash
|
||||||
|
|
||||||
) {
|
) {
|
||||||
|
|
||||||
error_window(
|
error_window(
|
||||||
"Program(s) required by this method: $lilo $ash"
|
"Program(s) required by this method: $lilo $ash $bzip2 $file"
|
||||||
);
|
);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user