1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
package harddrake::autoconf;
use common;
sub xconf {
my ($modules_conf, $o) = @_;
log::l('automatic XFree configuration');
require Xconfig::default;
require do_pkgs;
$o->{raw_X} = Xconfig::default::configure(do_pkgs_standalone->new);
require Xconfig::main;
Xconfig::main::configure_everything_auto_install($o->{raw_X}, do_pkgs_standalone->new, {}, { allowFB => 1 });
modules::load_category($modules_conf, 'various/agpgart');
}
sub network_conf {
my ($obj) = @_;
require network::network;
network::network::easy_dhcp($obj->{net}, $obj->{modules_conf});
}
sub mouse_conf {
my ($modules_conf) = @_;
require do_pkgs;
require mouse;
mouse::write_conf(do_pkgs_standalone->new, $modules_conf, my $mouse = mouse::detect($modules_conf), 1);
mouse::load_modules($mouse);
}
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 => "",
});
}
sub bluetooth {
my ($enable) = @_;
#- FIXME: make sure these packages are installed when needed
# if ($enable) {
# require do_pkgs;
# my $do_pkgs = do_pkgs_standalone->new;
# $do_pkgs->ensure_is_installed("bluez-utils", "/usr/bin/rfcomm");
# }
require services;
services::set_status("bluetooth", $enable);
}
1;
|