diff options
Diffstat (limited to 'scripts/detect-resolution')
-rwxr-xr-x | scripts/detect-resolution | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/detect-resolution b/scripts/detect-resolution index dad066e..d659b07 100755 --- a/scripts/detect-resolution +++ b/scripts/detect-resolution @@ -11,7 +11,9 @@ my (%main, %entry); my $vga = detect_from_cmdline(cat_('/proc/cmdline')); +undef $vga if $ENV{'DURING_INSTALL'} and $vga; #Nothing from Install cmdline. undef $vga if $vga =~ /x/; #lilo cmdline can't convert + detect_from_loader() if not $vga; if ($vga) { chomp $vga; @@ -36,6 +38,7 @@ sub parse_grub_conf { my ($title); my $cnt = 0; my $grub_conf = "/boot/grub/menu.lst"; + return if not -f $grub_conf; open F, $grub_conf or die "Can't open $grub_conf\n"; while (<F>) { @@ -61,6 +64,7 @@ sub parse_grub_conf { sub parse_lilo_conf { my $lilo_conf="/etc/lilo.conf"; my ($vga, $label); + return if not -f $lilo_conf; open F, $lilo_conf or die "Can't open $lilo_conf\n"; while (<F>) { next if /^\s*#/; |