summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-11-17 18:17:30 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-11-17 18:17:30 +0000
commit5eebded275f01bea4633dc4d33657be2af49c9ae (patch)
treea4dc06c0199377f28790b749cb305252b2b6aa04 /perl-install
parente6b1181d1fae2b88fe5156263953016c7a8b10a2 (diff)
downloaddrakx-backup-do-not-use-5eebded275f01bea4633dc4d33657be2af49c9ae.tar
drakx-backup-do-not-use-5eebded275f01bea4633dc4d33657be2af49c9ae.tar.gz
drakx-backup-do-not-use-5eebded275f01bea4633dc4d33657be2af49c9ae.tar.bz2
drakx-backup-do-not-use-5eebded275f01bea4633dc4d33657be2af49c9ae.tar.xz
drakx-backup-do-not-use-5eebded275f01bea4633dc4d33657be2af49c9ae.zip
when_load: is called many times (from read_already_loaded) so avoir remounting /proc/bus/usb those many times and sleeping for 4 seconds
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/modules.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/modules.pm b/perl-install/modules.pm
index e913e9f0f..f03fdf710 100644
--- a/perl-install/modules.pm
+++ b/perl-install/modules.pm
@@ -361,7 +361,7 @@ sub when_load {
my ($name, @options) = @_;
if ($name =~ /usb-[uo]hci/) {
- eval {
+ -f '/proc/bus/usb/devices' or eval {
require fs; fs::mount('/proc/bus/usb', '/proc/bus/usb', 'usbdevfs');
#- ensure keyboard is working, the kernel must do the job the BIOS was doing
sleep 4;