1
0
mirror of https://github.com/fspc/gbootroot.git synced 2025-04-04 07:43:22 -04:00

Cleaned up a few minor warnings.

This commit is contained in:
freesource 2001-07-23 20:39:57 +00:00
parent 6a69c2f545
commit dab83202ff

View File

@ -2124,8 +2124,10 @@ sub gdkbirdaao
if (-e $lilo_conf and !-d $lilo_conf) if (-e $lilo_conf and !-d $lilo_conf)
{ {
open(LIL, $lilo_conf) or die "*** $lilo_conf not found,";
my @lilo_lines = <LIL>; my @lilo_lines;
open(LIL, $lilo_conf) or warn "*** $lilo_conf not found, perhaps because you are not root?";
@lilo_lines = <LIL>;
close(LIL); close(LIL);
chomp(@lilo_lines); chomp(@lilo_lines);
@ -2203,6 +2205,7 @@ sub gdkbirdaao
if !$ret_append; if !$ret_append;
# do we have a default kernel? # do we have a default kernel?
if (defined $image_blocks{$image_block_name}{'block_label'}) {
if ($image_blocks{$image_block_name}{'block_label'} eq $default_label) if ($image_blocks{$image_block_name}{'block_label'} eq $default_label)
{ {
# Found the block match for the default label # Found the block match for the default label
@ -2213,6 +2216,7 @@ sub gdkbirdaao
} }
} }
} }
}
# and some a small portion of paranoia # and some a small portion of paranoia
$ret_root_dev = 'hda1' if !$ret_root_dev; $ret_root_dev = 'hda1' if !$ret_root_dev;