help setup an HP 3300C scanner

Warren Block wblock at wonkity.com
Thu Aug 4 05:09:47 UTC 2011


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.


More information about the freebsd-questions mailing list