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.
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[email protected]"