summaryrefslogtreecommitdiffstats
path: root/perl-install/any.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-02-28 15:56:34 +0000
committerFrancois Pons <fpons@mandriva.com>2003-02-28 15:56:34 +0000
commit599b2e830a03d2e6ad37164a0ee0a6c0b5d6d001 (patch)
tree579a984c3cecaf8978131db7fcb4a6037d827010 /perl-install/any.pm
parent18d932954ece7da041c7f8a92bdd92076f56eed7 (diff)
downloaddrakx-599b2e830a03d2e6ad37164a0ee0a6c0b5d6d001.tar
drakx-599b2e830a03d2e6ad37164a0ee0a6c0b5d6d001.tar.gz
drakx-599b2e830a03d2e6ad37164a0ee0a6c0b5d6d001.tar.bz2
drakx-599b2e830a03d2e6ad37164a0ee0a6c0b5d6d001.tar.xz
drakx-599b2e830a03d2e6ad37164a0ee0a6c0b5d6d001.zip
install acpi and acpid if "Enable ACPI" is ok.
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r--perl-install/any.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index b3d01ea89..be9ab101c 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -309,6 +309,11 @@ sub setupBootloader__general {
bootloader::set_profiles($b, $profiles);
bootloader::set_append($b, "mem", $memsize);
+ if ($force_acpi) {
+ $in->do_pkgs->ensure_is_installed('acpi', "/usr/bin/acpi", 1) or $force_acpi = 0;
+ $in->do_pkgs->ensure_is_installed('acpid', "/usr/sbin/acpid", 1) or $force_acpi = 0;
+ $force_acpi or log::l("deactivating acpi as no acpi nor acpid packages are present");
+ }
if ($prev_force_acpi != $force_acpi) {
bootloader::set_append($b, acpi => ($force_acpi ? '' : 'off'));
}