summaryrefslogtreecommitdiffstats
path: root/loader
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-03-07 21:36:35 +0000
committerJeremy Katz <katzj@redhat.com>2002-03-07 21:36:35 +0000
commite0e0c092d897035e2021137180b1da59b2776617 (patch)
treeed34cf7c7c63c86d7d51292c69e8c6db537ce04d /loader
parent1979c433bd2a1c44aa0549580436178cc62f26c6 (diff)
downloadanaconda-e0e0c092d897035e2021137180b1da59b2776617.tar.gz
anaconda-e0e0c092d897035e2021137180b1da59b2776617.tar.xz
anaconda-e0e0c092d897035e2021137180b1da59b2776617.zip
don't try to load usb mouse if we don't have a /proc/bus/usb/devices (#60365)
Diffstat (limited to 'loader')
-rw-r--r--loader/loader.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/loader/loader.c b/loader/loader.c
index 6781a298e..8371092ae 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -2915,6 +2915,8 @@ static void usbInitializeMouse(moduleList modLoaded, moduleDeps modDeps,
#else
if (FL_NOUSB(flags)) return;
+ if (access("/proc/bus/usb/devices", R_OK)) return;
+
logMessage("looking for USB mouse...");
if (probeDevices(CLASS_MOUSE, BUS_USB, PROBE_ALL)) {
logMessage("USB mouse found, loading mousedev module");