summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-08-30 17:19:20 +0000
committerThierry Vignaud <tv@mageia.org>2012-08-30 17:19:20 +0000
commitce77d9c9f65b3d8258f4482e6bf253f2d57321a8 (patch)
tree5c5deec74b45e7cdd82cac488584c9de865e7fe3 /perl-install
parent0cb0b07eefd3cfae46c9e2220525d5b6887c525c (diff)
downloaddrakx-ce77d9c9f65b3d8258f4482e6bf253f2d57321a8.tar
drakx-ce77d9c9f65b3d8258f4482e6bf253f2d57321a8.tar.gz
drakx-ce77d9c9f65b3d8258f4482e6bf253f2d57321a8.tar.bz2
drakx-ce77d9c9f65b3d8258f4482e6bf253f2d57321a8.tar.xz
drakx-ce77d9c9f65b3d8258f4482e6bf253f2d57321a8.zip
adapt to usbfs death (4/4): note that usbKeyboard2country_code() is
broken with kernel-3.5+ we need to find sg else in order to retrieve that info
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/detect_devices.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index 513800f3d..9547d8a9a 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -1266,6 +1266,7 @@ sub has_53c94() { find { /53c94/ } all_files_rec("/proc/device-tree") }
sub usbKeyboard2country_code {
my ($usb_kbd) = @_;
my ($F, $tmp);
+ # FIXME: usbfs is dead! we should poke somewhere in /sys/ !!!!
sysopen($F, sprintf("/proc/bus/usb/%03d/%03d", $usb_kbd->{pci_bus}, $usb_kbd->{pci_device}), 0) and
sysseek $F, 0x28, 0 and
sysread $F, $tmp, 1 and