Re: [Freebsd 9] [amd64] [USB] [HPLIP] what's the (new) right way

看板FB_current作者時間14年前 (2011/10/30 21:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串9/10 (看更多)
Le 30.10.2011 08:28, David Marec a 嶰rit : >> I have a similar problem.. Le 30.10.2011 08:28, David Marec a 嶰rit : >> I have a similar problem.. A new behavior occurs since I updated the world & kernel this morning. `devd` now executes the entry for hplip, as I defined it inside /usr/local/etc/devd/devd.conf. But, with `ulpt0` forwarded as device node. That sounds ok since ulpt has been loaded and attached by devd (or some other stuff, i dont know); What comes now as the major issue. hold it... since the update, ulpt keeps on being quiet while the printer gets plugged.. So, I changed my script to: #!/bin/sh # # set up /dev/$1.$2.* to cups:hplip -rw-rw--- # logger "HPLIP printer found on $1.$2" logger "setting suitable rights for $1.$2" /usr/sbin/chown cups:hplip /dev/usb/$1.$2.[0-9] /bin/chmod g+rw /dev/usb/$1.$2.[0-9] ....and used the "nomatch" key instead of the "attach" key into /usr/local/etc/devd/devd.conf nomatch 100 { match "vendor" "0x03f0"; match "product" "0x4712"; action "/root/sbin/ugen-hdle $port $devaddr"; }; 'looks like it works . -- David Marec, mailto:david.marec@davenulle.org http://user.lamaiziere.net/david/Site http://www.diablotins.org/ A new behavior occurs since i update the world & kernel this morning. `devd` now executes the entry for hplip, as I defined it inside /usr/local/etc/devd/devd.conf. But, with `ulpt0` forwarded as device node. That sounds ok since ulpt has been loaded and attached by devd (or some other stuff, i dont know); What comes now as the major issue. And, up to now, ulpt keep on being stuck. So, i change my script to #!/bin/sh # # set up /dev/$1.$2.* to cups:hplip -rw-rw--- # logger "HPLIP printer found on $1.$2" logger "setting suitable rights for $1.$2" /usr/sbin/chown cups:hplip /dev/usb/$1.$2.[0-9] /bin/chmod g+rw /dev/usb/$1.$2.[0-9] And uses "nomatch" instead of "attach" into /usr/local/etc/devd/devd.conf nomatch 100 { match "vendor" "0x03f0"; match "product" "0x4712"; action "/root/sbin/ugen-hdle $port $devaddr"; }; seems to work finally. -- D幨icieuse cette b嶧rnaise. http://user.lamaiziere.net/david/Site http://www.diablotins.org/ _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1EhL7ISr (FB_current)
討論串 (同標題文章)
完整討論串 (本文為第 9 之 10 篇):
文章代碼(AID): #1EhL7ISr (FB_current)