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
commite26ced811719215c6b83deb8567409bc3c8fc9f5 (patch)
tree5c5deec74b45e7cdd82cac488584c9de865e7fe3 /perl-install
parent993fed83ad91ab1a1cdf11252adfb451a00c4fd5 (diff)
downloaddrakx-backup-do-not-use-e26ced811719215c6b83deb8567409bc3c8fc9f5.tar
drakx-backup-do-not-use-e26ced811719215c6b83deb8567409bc3c8fc9f5.tar.gz
drakx-backup-do-not-use-e26ced811719215c6b83deb8567409bc3c8fc9f5.tar.bz2
drakx-backup-do-not-use-e26ced811719215c6b83deb8567409bc3c8fc9f5.tar.xz
drakx-backup-do-not-use-e26ced811719215c6b83deb8567409bc3c8fc9f5.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