Hello everybody!
I'm having problems getting my USB-scanner (Epson Perfection 610) work properly under Slackware 10.2 (with kernel 2.6.16).
My user is in group "scanner".
When I plug in the device, /etc/hotplug/usb/libsane.usermap also detect the scanner. Then the libusbscanner script change the ownership and permissions on the "device node" used by libusb. XSane work (then) correctly, too.
After reboot hotplug shows an error message, that it cannot access
/proc/bus/usb/002/004 - No such file or directory
Xsane doesn't work no longer - until I remove the USB connection and plug the scanner in once again.
In /etc/hotplug/usb/libusbscanner there's following hint regarding /etc/hotplug/usb/libusbscanner and kernel 2.6.
Code:
# latest hotplug doesn't set DEVICE on 2.6.x kernels
if [ -z "$DEVICE" ] ; then
IF=`echo $DEVPATH | sed 's/\(bus\/usb\/devices\/\)\(.*\)-\(.*\)/\2/'`
DEV=$(cat /sys/${DEVPATH}/devnum)
DEVICE=`printf '/proc/bus/usb/%.03d/%.03d' $IF $DEV`
fi
if [ "$ACTION" = "add" -a "$TYPE" = "usb" ]; then
chown root:scanner "$DEVICE"
chmod 0660 "$DEVICE"
fi
But how should it work then - someone has a solution?