Question

  Asked: Mar 9 2008   8:02 PM GMT
  Asked by: Bdika


Auto Load USB Printer Firmware When Printer Turned On - Linux


Linux, Linux desktop environment, Bash, Printing, Puppy Linux

I am using a derivative of Puppy Linux. I compiled the driver for the HP Laserjet 1020 printer. For the printer to work the firmware has to be loaded every time the printer is turned on.

I have added the following command to the rc.local file in Puppy Linux which runs every time Puppy Linux boots up:


cat /usr/share/foo2zjs/firmware/sihp1020.dl > /dev/usb/lp0


This works fine if the printer is on when I boot into Puppy Linux. If the printer is not on when I boot up then I have to run the code in a shell before the printer will print.

This is OK for me but my family members need to be able to just turn on the printer any time and have it print. They do not even know what a shell is and cannot be expected to issue shell commands to get the printer to work.

My question is this:

Can I put the above code in a script that will execute every time the USB printer is turned on?

Knowing the kind of operating system that Linux is, I am sure that there is a way to do this. I'm just not skilled enough to know how to do it.

Any help would be much appreciated.

bdika

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


Start this Answer and Earn your Knowledge Points!

By clicking "Create Answer", you can write the answer to this question that can be improved upon by your peers using the Answer Wiki.

Browse more Questions and Answers on Linux and Microsoft Windows.

Looking for relevant Linux Whitepapers? Visit the SearchEnterpriseLinux.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register