From 126777bc019a54afb4ec51299f2cf9d2841698aa Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 25 Apr 2007 12:26:16 +0000 Subject: re-sync after the big svn loss --- perl-install/harddrake/autoconf.pm | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'perl-install/harddrake/autoconf.pm') diff --git a/perl-install/harddrake/autoconf.pm b/perl-install/harddrake/autoconf.pm index baffc7647..791185b67 100644 --- a/perl-install/harddrake/autoconf.pm +++ b/perl-install/harddrake/autoconf.pm @@ -9,10 +9,15 @@ sub xconf { require Xconfig::default; require do_pkgs; - $o->{raw_X} = Xconfig::default::configure(do_pkgs_standalone->new); + my $do_pkgs = do_pkgs_standalone->new; + $o->{raw_X} = Xconfig::default::configure($do_pkgs); require Xconfig::main; - Xconfig::main::configure_everything_auto_install($o->{raw_X}, do_pkgs_standalone->new, {}, { allowFB => 1 }); + Xconfig::main::configure_everything_auto_install($o->{raw_X}, $do_pkgs, {}, { allowFB => 1 }); + + #- always disable compositing desktop effects when configuring a new video card + require Xconfig::glx; + Xconfig::glx::write({}); modules::load_category($modules_conf, 'various/agpgart'); } @@ -33,16 +38,8 @@ sub mouse_conf { sub pcmcia { my ($pcic) = @_; - - #- should be set after installing the package above otherwise the file will be renamed. - setVarsInSh("$::prefix/etc/sysconfig/pcmcia", { - PCMCIA => bool2yesno($pcic), - PCIC => $pcic, - PCIC_OPTS => "", - CORE_OPTS => "", - }); - require services; - services::set_status("pcmcia", $pcic); + require modules; + modules::set_preload_modules("pcmcia", if_($pcic, $pcic)); } sub bluetooth { @@ -81,4 +78,9 @@ sub laptop { services::set_status("numlock", !$on_laptop); } +sub cpufreq() { + require cpufreq; + modules::set_preload_modules("cpufreq", cpufreq::get_modules()); +} + 1; -- cgit v1.2.1