loading firmware into hplj1000 twice
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
foo2zjs (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
/lib/udev/hplj1000 doesn't handle another $DEVNAME case when udev calls it twice.
Udev calls the script twice for some reason on the system described below.
At first, udev calls hplj1000 with "/dev/bus/
Then it calls the script once again with "/dev/usb/lp0" as a $DEVNAME which is desired and must be used to load a firmware to.
The problem is that the script handles only "/dev/usb/usb*" case but not the "/dev/bus/usb/*".
This leads to firmware being loaded twice which causes HP LaserJet 1000 to hang and stop processing tasks.
Attached patch adds another case to the /lib/udev/hplj1000 script that silently exits if the script is called with undesired value.
# lsb_release -rd
Description: Ubuntu 14.04.2 LTS
Release: 14.04
# apt-cache policy printer-
printer-
Installed: 20140209dfsg0-
Candidate: 20140209dfsg0-
Version table:
*** 20140209dfsg0-
500 http://
100 /var/lib/
# apt-cache policy udev
udev:
Installed: 204-5ubuntu20.12
Candidate: 204-5ubuntu20.12
Version table:
*** 204-5ubuntu20.12 0
500 http://
100 /var/lib/
204-5ubuntu20 0
500 http://
#
The attachment "hplj1000.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]