summaryrefslogtreecommitdiffstats
path: root/perl-install/Xconfig
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-01-07 16:08:41 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-01-07 16:08:41 +0000
commit0bc655c8b88c9a2c92db66dc8b259c56ec53ee49 (patch)
tree8e42cc5a29d8ffed9f62f0766cebc1fcdc97fc34 /perl-install/Xconfig
parent231ceccbb97bb1f62c223cc5bf33046f67f1021b (diff)
downloaddrakx-backup-do-not-use-0bc655c8b88c9a2c92db66dc8b259c56ec53ee49.tar
drakx-backup-do-not-use-0bc655c8b88c9a2c92db66dc8b259c56ec53ee49.tar.gz
drakx-backup-do-not-use-0bc655c8b88c9a2c92db66dc8b259c56ec53ee49.tar.bz2
drakx-backup-do-not-use-0bc655c8b88c9a2c92db66dc8b259c56ec53ee49.tar.xz
drakx-backup-do-not-use-0bc655c8b88c9a2c92db66dc8b259c56ec53ee49.zip
pass --splash <resolution> to mkinitrd
(so that make-boot-splash doesn't rely on lilo.conf or menu.lst)
Diffstat (limited to 'perl-install/Xconfig')
-rw-r--r--perl-install/Xconfig/resolution_and_depth.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/perl-install/Xconfig/resolution_and_depth.pm b/perl-install/Xconfig/resolution_and_depth.pm
index 5efac6ae5..8c095a64b 100644
--- a/perl-install/Xconfig/resolution_and_depth.pm
+++ b/perl-install/Xconfig/resolution_and_depth.pm
@@ -44,6 +44,11 @@ my @bios_vga_modes = (
{ bios => 794, X => 1280, Y => 1024, Depth => 16 },
);
+sub from_bios {
+ my ($bios) = @_;
+ find { $_->{bios} == $bios } @bios_vga_modes;
+}
+
sub size2default_resolution {
my ($size) = @_; #- size in inch