summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-08-26 20:56:59 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-08-26 20:56:59 +0000
commit585e6c72049cc869a322d7ae42cfaf620aca37a2 (patch)
treea0c3e8cb163e96ead1c4c4583547671df541bacd
parentfdaac035e29f4915c34cb25d747706c5f4a860ce (diff)
downloaddrakx-backup-do-not-use-585e6c72049cc869a322d7ae42cfaf620aca37a2.tar
drakx-backup-do-not-use-585e6c72049cc869a322d7ae42cfaf620aca37a2.tar.gz
drakx-backup-do-not-use-585e6c72049cc869a322d7ae42cfaf620aca37a2.tar.bz2
drakx-backup-do-not-use-585e6c72049cc869a322d7ae42cfaf620aca37a2.tar.xz
drakx-backup-do-not-use-585e6c72049cc869a322d7ae42cfaf620aca37a2.zip
create /dev/usbmouse symlink for non devfs use
-rw-r--r--perl-install/mouse.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/perl-install/mouse.pm b/perl-install/mouse.pm
index af0f7fca3..af711bce9 100644
--- a/perl-install/mouse.pm
+++ b/perl-install/mouse.pm
@@ -205,8 +205,13 @@ sub write {
local $mouse->{WHEEL} = bool2yesno($mouse->{nbuttons} > 3);
setVarsInSh("$::prefix/etc/sysconfig/mouse", $mouse, qw(MOUSETYPE XMOUSETYPE FULLNAME XEMU3 WHEEL device));
any::devfssymlinkf($mouse, 'mouse');
+
+ #- we should be using input/mice directly instead of usbmouse, but legacy...
+ symlinkf 'input/mice', "$::prefix/dev/usbmouse" if $mouse->{device} eq "usbmouse";
+
any::devfssymlinkf($mouse->{auxmouse}, 'mouse1') if $mouse->{auxmouse};
+
various_xfree_conf($in, $mouse);
if (arch() =~ /ppc/) {
@@ -219,8 +224,6 @@ sub write {
$_ = '' if /^\Qdev.mac_hid.mouse_button/;
$_ .= $s if eof;
} "$::prefix/etc/sysctl.conf";
- #- hack - dev RPM symlinks to mouse0 - lands on mouse1 with new input layer on PPC input/mice will get both ADB and USB
- symlinkf "/dev/input/mice", "$::prefix/dev/usbmouse" if ($mouse->{device} eq "usbmouse");
}
}