summaryrefslogtreecommitdiffstats
path: root/perl-install/harddrake/autoconf.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-06-15 16:24:40 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-06-15 16:24:40 +0000
commit56d10513e72efcb0976988b18bca29b57ba162ad (patch)
treea24e80b8fb3b98ea3b18b74674bf8e0e23fea5eb /perl-install/harddrake/autoconf.pm
parent6a24ca4166aae4c0b79528286925f46cfeb15c7f (diff)
downloaddrakx-56d10513e72efcb0976988b18bca29b57ba162ad.tar
drakx-56d10513e72efcb0976988b18bca29b57ba162ad.tar.gz
drakx-56d10513e72efcb0976988b18bca29b57ba162ad.tar.bz2
drakx-56d10513e72efcb0976988b18bca29b57ba162ad.tar.xz
drakx-56d10513e72efcb0976988b18bca29b57ba162ad.zip
autoconf code for globetrotter and new harddrake service
Diffstat (limited to 'perl-install/harddrake/autoconf.pm')
-rw-r--r--perl-install/harddrake/autoconf.pm27
1 files changed, 27 insertions, 0 deletions
diff --git a/perl-install/harddrake/autoconf.pm b/perl-install/harddrake/autoconf.pm
new file mode 100644
index 000000000..985fecb4e
--- /dev/null
+++ b/perl-install/harddrake/autoconf.pm
@@ -0,0 +1,27 @@
+package harddrake::autoconf;
+
+use common;
+use any;
+
+sub xconf {
+ my ($o) = @_;
+
+ log::l('automatic XFree configuration');
+
+ require Xconfig::default;
+ $o->{raw_X} = Xconfig::default::configure(keyboard::read());
+
+ require Xconfig::main;
+ require class_discard;
+ Xconfig::main::configure_everything_auto_install($o->{raw_X}, class_discard->new, {}, { allowFB => 1 });
+
+ modules::load_category('various/agpgart');
+}
+
+sub network_conf {
+ my ($o) = @_;
+ require network::network;
+ network::network::easy_dhcp($o->{netc}, $o->{intf}) and $o->{netcnx}{type} = 'lan';
+}
+
+1;