summaryrefslogtreecommitdiffstats
path: root/perl-install/Xconfigurator.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-01-01 17:09:26 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-01-01 17:09:26 +0000
commitd004436dc848800c9d65b90e39c39836c4d44cdf (patch)
treeb37bdcac9dad762a2b692076522785a83533c5f6 /perl-install/Xconfigurator.pm
parent1dc94110fc837dbe6cf06806f60c207ab1b64e83 (diff)
downloaddrakx-backup-do-not-use-d004436dc848800c9d65b90e39c39836c4d44cdf.tar
drakx-backup-do-not-use-d004436dc848800c9d65b90e39c39836c4d44cdf.tar.gz
drakx-backup-do-not-use-d004436dc848800c9d65b90e39c39836c4d44cdf.tar.bz2
drakx-backup-do-not-use-d004436dc848800c9d65b90e39c39836c4d44cdf.tar.xz
drakx-backup-do-not-use-d004436dc848800c9d65b90e39c39836c4d44cdf.zip
no_comment
Diffstat (limited to 'perl-install/Xconfigurator.pm')
-rw-r--r--perl-install/Xconfigurator.pm33
1 files changed, 28 insertions, 5 deletions
diff --git a/perl-install/Xconfigurator.pm b/perl-install/Xconfigurator.pm
index 184c3d303..2b3814faf 100644
--- a/perl-install/Xconfigurator.pm
+++ b/perl-install/Xconfigurator.pm
@@ -622,6 +622,28 @@ sub write_XF86Config {
print F " ClearRTS\n\n" if $O->{cleardtrrts};
print F "EndSection\n\n\n";
+ print F qq(
+Section "Module"
+ Load "xf86Wacom.so"
+EndSection
+
+Section "XInput"
+ SubSection "WacomStylus"
+ Port "/dev/$o->{wacom}"
+ AlwaysCore
+ EndSubSection
+ SubSection "WacomCursor"
+ Port "/dev/$o->{wacom}"
+ AlwaysCore
+ EndSubSection
+ SubSection "WacomEraser"
+ Port "/dev/$o->{wacom}"
+ AlwaysCore
+ EndSubSection
+EndSection
+
+) if $o->{wacom};
+
#- Write monitor section.
$O = $o->{monitor};
print F $monitorsection_text1;
@@ -795,11 +817,12 @@ sub main {
if ($ok) {
unless ($::testing) {
my $f = "$prefix/etc/X11/XF86Config";
- rename $f, "$f.old" or die "unable to make a backup of XF86Config";
- rename "$f.test", $f;
-
- symlinkf "../..$o->{card}{prog}", "$prefix/etc/X11/X";
- }
+ if (-e "$f.test") {
+ rename $f, "$f.old" or die "unable to make a backup of XF86Config";
+ rename "$f.test", $f;
+ symlinkf "../..$o->{card}{prog}", "$prefix/etc/X11/X";
+ }
+ }
if ($::isStandalone && $0 =~ /Xdrakres/) {
my $found;