summaryrefslogtreecommitdiffstats
path: root/perl-install/harddrake
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-12-13 15:43:45 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-12-13 15:43:45 +0000
commitf298cec9f7d4bb4dc1972cc737007b6da86d4cb0 (patch)
treea52d7587f52b6c153bb4e7dd29fc63ae61a8a934 /perl-install/harddrake
parent292bdfb0285b757882b4e933c413d834b4324d4b (diff)
downloaddrakx-backup-do-not-use-f298cec9f7d4bb4dc1972cc737007b6da86d4cb0.tar
drakx-backup-do-not-use-f298cec9f7d4bb4dc1972cc737007b6da86d4cb0.tar.gz
drakx-backup-do-not-use-f298cec9f7d4bb4dc1972cc737007b6da86d4cb0.tar.bz2
drakx-backup-do-not-use-f298cec9f7d4bb4dc1972cc737007b6da86d4cb0.tar.xz
drakx-backup-do-not-use-f298cec9f7d4bb4dc1972cc737007b6da86d4cb0.zip
- 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
Diffstat (limited to 'perl-install/harddrake')
-rw-r--r--perl-install/harddrake/autoconf.pm12
1 files changed, 12 insertions, 0 deletions
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;