Firmware upload fails in hplj1000 script
The hplj1000 script fails to upload firmware files when both the usb_printerid program and the CUPS USB backend are found.
The problem is that the hplj1000 script first tries to upload the firmware by catting it to /dev/usb/lpN and sending this process to the background.
Then, while this process is probably still running, it *also* tries to upload the firmware using the CUPS USB backend.
The net result is that both methods fail.
I have attached a patch that fixes the problem. The patch makes sure that either the cat method *or* the CUPS method is used (it tries in that order) but never both.
Another note: the upload happens too fast on my system (the script sleeps 3s before uploading) and this causes the printer to not work (although the firmware *is* uploaded). If I increase the sleep to 10s, it does work. Should I file another bug for this?
Some more info:
$ lsb_release -rd
Description: Ubuntu 12.04 LTS
$ apt-cache policy printer-
|Changed in foo2zjs (Ubuntu):|
|status:||Triaged → In Progress|