diff options
author | Olivier Blin <oblin@mandriva.org> | 2006-03-03 17:18:00 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2006-03-03 17:18:00 +0000 |
commit | 2ec16ef14a1f7bc42ac92255c4f2725fa8c25d10 (patch) | |
tree | 552cc1f24140cba211e9c11853de8b16aed05551 /perl-install/harddrake/autoconf.pm | |
parent | 88259f712e60642bbd9917d53ca35fc38c4fbdde (diff) | |
download | drakx-2ec16ef14a1f7bc42ac92255c4f2725fa8c25d10.tar drakx-2ec16ef14a1f7bc42ac92255c4f2725fa8c25d10.tar.gz drakx-2ec16ef14a1f7bc42ac92255c4f2725fa8c25d10.tar.bz2 drakx-2ec16ef14a1f7bc42ac92255c4f2725fa8c25d10.tar.xz drakx-2ec16ef14a1f7bc42ac92255c4f2725fa8c25d10.zip |
autoconf laptop services when switching between laptop and desktop
Diffstat (limited to 'perl-install/harddrake/autoconf.pm')
-rw-r--r-- | perl-install/harddrake/autoconf.pm | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/perl-install/harddrake/autoconf.pm b/perl-install/harddrake/autoconf.pm index 85be3ea4b..0c1ddff7d 100644 --- a/perl-install/harddrake/autoconf.pm +++ b/perl-install/harddrake/autoconf.pm @@ -55,4 +55,23 @@ sub bluetooth { services::set_status("bluetooth", $enable); } +sub laptop { + my ($on_laptop) = @_; +#- FIXME: make sure these packages are installed when needed +# require do_pkgs; +# my $do_pkgs = do_pkgs_standalone->new; +# if ($on_laptop) { +# $do_pkgs->ensure_is_installed("cpufreq", "/etc/rc.d/init.d/cpufreq"); +# $do_pkgs->ensure_is_installed("apmd", "/usr/bin/apm"); +# $do_pkgs->ensure_is_installed("hotkeys", "/usr/bin/hotkeys"); +# $do_pkgs->ensure_is_installed("laptop-mode-tools", "/usr/sbin/laptop_mode"); +# } else { +# $do_pkgs->ensure_is_installed("numlock", "/etc/rc.d/init.d/numlock"); +# } + require services; + services::set_status("cpufreq", $on_laptop); + services::set_status("apmd", $on_laptop); + services::set_status("laptop-mode", $on_laptop); +} + 1; |