diff options
author | Stew Benedict <stewb@mandriva.org> | 2001-04-14 10:21:00 +0000 |
---|---|---|
committer | Stew Benedict <stewb@mandriva.org> | 2001-04-14 10:21:00 +0000 |
commit | e4179e04d6c1fff7b7601644089631d6a6eae0c4 (patch) | |
tree | da2de8310e0849ac0da2ce4072e08a3cd834767e /perl-install/mouse.pm | |
parent | a6cbc8581ce970301a0e186381d1b748282cb15c (diff) | |
download | drakx-e4179e04d6c1fff7b7601644089631d6a6eae0c4.tar drakx-e4179e04d6c1fff7b7601644089631d6a6eae0c4.tar.gz drakx-e4179e04d6c1fff7b7601644089631d6a6eae0c4.tar.bz2 drakx-e4179e04d6c1fff7b7601644089631d6a6eae0c4.tar.xz drakx-e4179e04d6c1fff7b7601644089631d6a6eae0c4.zip |
updates to X, mouse setup for PPC
Diffstat (limited to 'perl-install/mouse.pm')
-rw-r--r-- | perl-install/mouse.pm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/perl-install/mouse.pm b/perl-install/mouse.pm index 08205213a..cdcc453f5 100644 --- a/perl-install/mouse.pm +++ b/perl-install/mouse.pm @@ -40,7 +40,8 @@ my %mice = 'USB' => [ [ 'usbmouse' ], - [ [ 2, 'ps/2', 'PS/2', __("Generic") ], + [ if_(arch() eq 'ppc', [ 1, 'ps/2', 'PS/2', __("1 button") ]), + [ 2, 'ps/2', 'PS/2', __("Generic") ], [ 5, 'ps/2', 'IMPS/2', __("Wheel") ], ]], @@ -192,6 +193,8 @@ 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"); } } @@ -227,7 +230,7 @@ sub detect() { } if (arch() eq "ppc") { return fullname2mouse(detect_devices::hasMousePS2("usbmouse") ? - "USB|Generic" : + "USB|1 button" : # No need to search for an ADB mouse. If I did, the PPC kernel would # find one whether or not I had one installed! So.. default to it. "busmouse|1 button"); |