diff options
author | Francois Pons <fpons@mandriva.com> | 2003-02-28 15:56:34 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2003-02-28 15:56:34 +0000 |
commit | 599b2e830a03d2e6ad37164a0ee0a6c0b5d6d001 (patch) | |
tree | 579a984c3cecaf8978131db7fcb4a6037d827010 /perl-install | |
parent | 18d932954ece7da041c7f8a92bdd92076f56eed7 (diff) | |
download | drakx-backup-do-not-use-599b2e830a03d2e6ad37164a0ee0a6c0b5d6d001.tar drakx-backup-do-not-use-599b2e830a03d2e6ad37164a0ee0a6c0b5d6d001.tar.gz drakx-backup-do-not-use-599b2e830a03d2e6ad37164a0ee0a6c0b5d6d001.tar.bz2 drakx-backup-do-not-use-599b2e830a03d2e6ad37164a0ee0a6c0b5d6d001.tar.xz drakx-backup-do-not-use-599b2e830a03d2e6ad37164a0ee0a6c0b5d6d001.zip |
install acpi and acpid if "Enable ACPI" is ok.
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/any.pm | 5 |
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')); } |