From 5eebded275f01bea4633dc4d33657be2af49c9ae Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Mon, 17 Nov 2003 18:17:30 +0000 Subject: when_load: is called many times (from read_already_loaded) so avoir remounting /proc/bus/usb those many times and sleeping for 4 seconds --- perl-install/modules.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/modules.pm') 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; -- cgit v1.2.1