usbprinter 222 B

12345678910111213
  1. #!/bin/rc
  2. if (! test -e /dev/usb)
  3. bind -b '#U' /dev
  4. for(i in /dev/usb?/[0-9]*){
  5. if (grep -s 'Enabled 0x020107' $i/status){
  6. echo -n 'ep 2 bulk w 64 32' >$i/ctl
  7. bind $i/ep2data /n/lp
  8. exit ''
  9. }
  10. }
  11. exit 'no printer'