VirtualBox

Changeset 36417 in vbox


Ignore:
Timestamp:
Mar 24, 2011 10:49:51 PM (14 years ago)
Author:
vboxsync
Message:

Installer/Linux and Main: USB enumeration: fix detection of USB via sysfs/usb_device

Location:
trunk/src/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/vboxdrv.sh.in

    r36293 r36417  
    205205    if ! $MODPROBE vboxnetadp > /dev/null 2>&1; then
    206206        failure "modprobe vboxnetadp failed. Please use 'dmesg' to find out why"
     207    fi
     208    # Create the /dev/vboxusb directory if the host supports that method
     209    # of USB access.  The USB code checks for the existance of that path.
     210    if grep -q usb_device /proc/devices; then
     211        mkdir -p -m 0640 /dev/vboxusb 2>/dev/null
     212        chown root:vboxusers /dev/vboxusb 2>/dev/null
    207213    fi
    208214    succ_msg
  • trunk/src/VBox/Main/src-server/linux/USBGetDevices.cpp

    r36350 r36417  
    14431443                && !pcBestSysfs
    14441444                && RTPathExists(s_aTreeLocations[i].szDevicesRoot))
    1445             {
    1446                 PUSBDEVICE pDevices;
    1447 
    1448                 pDevices = getDevicesFromSysfs(s_aTreeLocations[i].szDevicesRoot,
    1449                                                true);
    1450                 if (pDevices)
    1451                 {
    1452                     pcBestSysfs = &s_aTreeLocations[i];
    1453                     deviceListFree(&pDevices);
    1454                 }
    1455             }
     1445                pcBestSysfs = &s_aTreeLocations[i];
    14561446        }
    14571447    if (pcBestUsbfs && !fPreferSysfs)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette