summaryrefslogtreecommitdiffstats
path: root/perl-install/Xconfig/various.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-01-16 15:30:44 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-01-16 15:30:44 +0000
commit0eb62bfc743007ce1711284e5252c20a15673949 (patch)
tree05c50309ad88bead86941d69cc2eef1c53837707 /perl-install/Xconfig/various.pm
parente14d638b98174c5935bfa4110be551b48a207a9d (diff)
downloaddrakx-0eb62bfc743007ce1711284e5252c20a15673949.tar
drakx-0eb62bfc743007ce1711284e5252c20a15673949.tar.gz
drakx-0eb62bfc743007ce1711284e5252c20a15673949.tar.bz2
drakx-0eb62bfc743007ce1711284e5252c20a15673949.tar.xz
drakx-0eb62bfc743007ce1711284e5252c20a15673949.zip
move setupFB() in Xconfig, and do it when needed (including when standalone)
Diffstat (limited to 'perl-install/Xconfig/various.pm')
-rw-r--r--perl-install/Xconfig/various.pm23
1 files changed, 23 insertions, 0 deletions
diff --git a/perl-install/Xconfig/various.pm b/perl-install/Xconfig/various.pm
index c1997fb5a..657c26b2f 100644
--- a/perl-install/Xconfig/various.pm
+++ b/perl-install/Xconfig/various.pm
@@ -149,4 +149,27 @@ sub check_XF86Config_symlink() {
}
}
+sub setupFB {
+ my ($bios_vga_mode) = @_;
+
+ require bootloader;
+ my ($bootloader, $all_hds);
+
+ if ($::isInstall) {
+ ($bootloader, $all_hds) = ($::o->{bootloader}, $::o->{all_hds});
+ } else {
+ $all_hds = fsedit::get_hds();
+ fs::get_info_from_fstab($all_hds);
+
+ $bootloader = bootloader::read($all_hds) or return;
+ }
+
+ foreach (@{$bootloader->{entries}}) {
+ $_->{vga} = $bios_vga_mode if $_->{vga}; #- replace existing vga= with
+ }
+
+ bootloader::action($bootloader, 'write', $all_hds);
+ bootloader::action($bootloader, 'when_config_changed');
+}
+
1;