From f298cec9f7d4bb4dc1972cc737007b6da86d4cb0 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 13 Dec 2004 15:43:45 +0000 Subject: - rename/move install_any::write_pcmcia() as harddrake::autoconf::pcmcia() so that it became availlable for standalone tools - reuse it in harddrake service in order to configure PCMCIA cards --- perl-install/harddrake/autoconf.pm | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'perl-install/harddrake') diff --git a/perl-install/harddrake/autoconf.pm b/perl-install/harddrake/autoconf.pm index adf6d9957..061d738af 100644 --- a/perl-install/harddrake/autoconf.pm +++ b/perl-install/harddrake/autoconf.pm @@ -31,4 +31,16 @@ sub mouse_conf { mouse::write_conf(do_pkgs_standalone->new, $modules_conf, mouse::detect($modules_conf), 1); } +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 => "", + }); +} + 1; -- cgit v1.2.1