diff options
-rw-r--r-- | perl-install/any.pm | 6 | ||||
-rw-r--r-- | perl-install/install_steps.pm | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm index 349606f4c..763ccf4ee 100644 --- a/perl-install/any.pm +++ b/perl-install/any.pm @@ -99,6 +99,12 @@ sub setupBootloader { eval { run_program::rooted($::prefix, 'lilo', '-u') } if $::isInstall && !$::o->{isUpgrade} && -e "$::prefix/etc/lilo.conf" && glob("$::prefix/boot/boot.*"); bootloader::install($b, $all_hds); + + if (my $acpi = bootloader::get_append($b, 'acpi')) { + if (!member($acpi, 'off', 'ht')) { + $in->do_pkgs->install('acpi', 'acpid') if !(-x "$::prefix/usr/bin/acpi" && -x "$::prefix/usr/sbin/acpid") + } + } } diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm index f1539b655..0153a23a4 100644 --- a/perl-install/install_steps.pm +++ b/perl-install/install_steps.pm @@ -688,12 +688,6 @@ sub summary { sub summaryAfter { my ($o) = @_; - - require bootloader; - my $acpi = bootloader::get_append($o->{bootloader}, 'acpi'); - if (!member($acpi, 'off', 'ht') && !(-x "$::prefix/usr/bin/acpi" && -x "$::prefix/usr/sbin/acpid")) { - $o->do_pkgs->install(qw(acpi acpid)); - } } #------------------------------------------------------------------------------ |