--- hotplug-2003_05_01/etc/hotplug/usb.rc.coldplug26 2003-07-31 14:39:01.000000000 +0400 +++ hotplug-2003_05_01/etc/hotplug/usb.rc 2003-07-31 23:40:17.000000000 +0400 @@ -125,6 +125,9 @@ DEVICE= export DEVFS DEVICE + DEVPATH= + export DEVPATH + # these notifications will be handled by usbmodules # NOTE: we're not providing a full set of hotplug # parameters for USB. that's why "usbmodules" is a @@ -134,10 +137,21 @@ # FIXME usbmodules, or something, should set real # PRODUCT and DEVICE strings so /etc/hotplug/usb/* # scripts can rely on them ... - for DEVICE in /proc/bus/usb/*/* - do + # + # for 2.6 lister is disabled so either this should be fixed + # or we just use sysfs + if [ -d /sys/bus/usb/devices ]; then + declare device + for device in /sys/bus/usb/devices/*; do + DEVPATH=${device#/sys/} /etc/hotplug/usb.agent - done + done + else + for DEVICE in /proc/bus/usb/*/* + do + /etc/hotplug/usb.agent + done + fi }