On Thu, Aug 4, 2011 at 12:09 AM, Warren Block <[email protected]> wrote: > On Wed, 3 Aug 2011, Antonio Olivares wrote: > >> Thank you for your message. I have added the following: >> >> # AAO >> # detect HP ScanJet 3300C >> attach 20 { >> device-name "ugen[0-9].[0-9]"; >> match "vendor" "0x03f0"; >> match "product" "0x0205"; >> action "usb_devaddr=`echo $device-name | sed 's#^ugen##'` && \ >> chown root:saned /dev/usb/${usb_devaddr}.* && \ >> chmod 0660 /dev/usb/${usb_devaddr}.* && \ >> su saned -c '/usr/local/bin/scanbuttond \ >> -s /usr/local/etc/scanbuttond/buttonpressed.sh \ >> -S /usr/local/etc/scanbuttond/initscanner.sh \ >> -b /usr/local/lib/libscanbtnd-backend_epson.so'"; >> }; > > The last part of the action tries to run scanbuttond when the scanner is > turned on. That can be removed if you don't use scanbuttond. > > action "usb_devaddr=`echo $device-name | sed 's#^ugen##'` && \ > chown root:saned /dev/usb/${usb_devaddr}.* && \ > chmod 0660 /dev/usb/${usb_devaddr}.*"; > >> # AAO >> # remove HP ScanJet 3300C >> detach 20 { >> device-name "ugen[0-9].[0-9]"; >> match "vendor" "0x03f0"; >> match "product" "0x0205"; >> action "/usr/bin/pkill scanbuttond"; >> }; > > Similarly, the detach isn't needed if you're not running scanbuttond. >
I added scanbuttond from ports to be safe :), I just copied your example (not looking that it was customized for epson :( libscanbtnd-backend_epson.so, but I have removed that and left it as you have suggested :) I was glad that it worked and I did not notice that. The good thing is that it* scanner is working and thanks to your kind example/suggestion. Regards, Antonio _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[email protected]"
